by grim72 on November 18th, 2009

grim72

Question

Help answer this question below.

I have an excel column. Each cell contains a code similar to 16203K - I want to split the cell into 3 seperate columns to seperate the first and last characters - i.e 1 / 6203 / K Is this feasible? I am not technically gifted so simple answer appreciated

  • Like
  • Report

Answers. 3 helpful answers below.

  • by Cyanotic Wasp on November 18th, 2009

    Cyanotic Wasp

    Brian's answer works for codes of exactly the same length (6 characters always).

    If the code lengths vary, then you can use this formula for the MIDDLE value (the only one that would vary):

    =mid( E18, 2, len( E18) - 2)

    (Actually, this code works regardless of whether or not the code lengths vary, so you could substitute it for Brian's suggestion with no ill effects.)

    • Like
    • Report

    2 comments | Post one | Permalink

  • by Brian I on November 18th, 2009

    Brian I

    If all your codes have the same number of digits this is very straightforward. The following formulas assume that your original code is in cell E18.

    In cell F18 enter the formula =LEFT(E18,1)
    In cell G18 enter the formula =MID(E18,2,4)
    In cell H18 enter the formula =RIGHT(E18,1)

    It becomes more complicated if the codes have different numbers of digits.

    • Like
    • Report

    3 comments | Post one | Permalink

  • by Brian on November 18th, 2009

    Brian

    Click on cell or column info is in. Go to Data on your tool bar then click "Text to Columns". Click radio button next to "Fixed with", then next. Click on the line where you want the breaks to be, then next. Confirm what you want to export. You can choose here to not export a part of the text you are splitting. Then click next. You must be sure that the cell to the right are clear. So if you are creating 3 columns you need 2 columns to the right open. If not, items in cells to the right will be deleted. You can add columns prior to splitting cell.

    • Like
    • Report

    1 comment | Post one | Permalink

Want to attach an image to your answer? Click here.

Did this answer your question? If not, then ask a new question or create a poll.

You're reading I have an excel column. Each cell contains a code similar to 16203K - I want to split the cell into 3 seperate columns to seperate the first and last characters - i.e 1 / 6203 / K Is this feasible? I am not technically gifted so simple answer appreciated

Follow us on Facebook!

Related Ads

ANSWERBAG BUZZ

Excel for each cell
Cell that contains a code
Excel if cell contains anything in another column
The year 2013
Excel if cell contains add data from another column