+ Reply to Thread
Results 1 to 13 of 13

Move 9 columns of data in Column B that are seperated by spaces & place in columns C - J

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Move 9 columns of data in Column B that are seperated by spaces & place in columns C - J

    Data looks like this.
    Note - Some rows have numbers in them, some end with a comma

    Xxxx xxx xxxx xxx xxxx - xxxx, 34.00 LF 0.87 0.59 6.04 36.21 (0.00) 36.21
    Xxx Xxxxxx Xxxxx - 3/4" 33.60 LF 1.40 1.23 9.64 57.91 (0.00) 57.91
    Xxx 1/2" Xxxxxxx - Xxx, Xxxx, 32.00 SF 1.94 1.10 12.64 75.82 (0.00) 75.82
    Xxxxx Xxxxxx Xxx - 1 xxxx 6.00 LF 1.03 0.07 1.26 7.51 (0.00) 7.51

    Using the last row as an example, need to end up with the data in C - J as follows
    (Working from column J to column C)
    Column J - 7.51, I - (0.00), H - 7.51, G - 1.26, F - 0.07, E - 1.03, D - LF, C - 6 and the balance of B left in B Xxxxx Xxxxxx Xxx - 1 xxxx

    Have about 200 rows to do every few days so really appreciate your help
    Attached Files Attached Files
    Last edited by ILoveStMartin; 03-09-2016 at 02:59 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Please upload an actual sample excel file showing BEFORE and AFTER for your desired outcome.

  3. #3
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Attachment now in place - Thanks

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    The issue is with your initial text
    R&R 1/2" drywall - hung, taped,
    R&R Quarter round - 3/4"
    Paint window sill - 1 coat
    It doesn't follow any specific pattern that we can have Excel use to separate it.
    If you can separate that manually, then the rest can be separated by "Text To Columns" using Space as a delimiter.

    If I missed a pattern, let me know.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Is there anyway to go from right to left for the first column when going that way (J), then the next space (right to left) to get what goes in I, etc. ????

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Okay, you gave me an idea. First, position the active cell where you plan on separating your data. In my spreadsheet, it was cell A12. Then go to defined names (Formulas>Name Manager), new name
    Please Login or Register  to view this content.
    In A12 copied down
    =MID(A2, 1, FIND("^", SUBSTITUTE(A2, " ", "^", NumSpaces-7)))

    In B12 copied across to H and down
    =MID($A2, FIND("^",SUBSTITUTE($A2, " ", "^", NumSpaces-8+COLUMNS($B$12:B$12))),FIND("^",SUBSTITUTE($A2, " ", "^", NumSpaces-8+COLUMNS($B$12:C$12))) - FIND("^", SUBSTITUTE($A2, " ", "^", NumSpaces- 8+COLUMNS($B$12:B$12))))

    In I12 copied down
    =RIGHT($A2, LEN($A2)-FIND("^",SUBSTITUTE($A2, " ","^",NumSpaces)))
    See attachment
    Questions?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Works!!!
    Thanks - i was so anxious I missed the name manager part the first time around.
    Couple of questions -
    1. What do I have to do to get the formulas to wok to the right of the data instead of below it.
    2. Can it be put into a macro?Thanks again

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Just line up the formula's to the right of the data instead of below. Make sure that your active cell is in the same row as your first set of data when making your defined name. See attachment.

    If you want to then delete column A, Copy >Paste Special Values over top of the formulas to convert them to constants.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Thanks - I was not sure where the name defined cell needed to be.
    But - also - the first time I did the define name, the value did not end up as (...) and the formulas did not work.
    Because the person I am going to help me do these reports is a total novice on excel I would like to create a name the cell macro that would work on any sheet, in any row.
    Do I need to ask about that in the Macro group or can yu help me with that?
    Thanks

  10. #10
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    HELP!!
    What do I do when the number of columns is only 8 - or ?
    I tried changing the numbers in the formulas from 8 to 7, but I now get combinations of columns in the results.
    Thanks!!

  11. #11
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    HELP - I have worked hours without the total solution
    Data to be worked with is in C2.
    D2 is where the extraction starts so I put cursor in D2 and did the name manager.
    Only have 7 columns of data. (Earlier data had 8) Looks like I have corrected the formulas in E thru K.
    But, what is coming up in D - in some cases but not all - is incomplete.
    For example
    28. Provide picture-frame box, packing 35.00 EA 0.00 5.04 12.35 37.76 226.51
    The numbers 35 - 226.51 are in their right columns.
    D2 only contains "Provide picture-ftame box,"
    Thanks

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Can you upload a new exaample (Go Advanced>Manage Attachments)

  13. #13
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move 9 columns of data in Column B that are seperated by spaces & place in columns C -

    Are you asking for a complete macro solution? or a macro to set up the defined name?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] place text seperated by a space in a column into seperate columns
    By Markus L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 12:05 PM
  2. place text seperated by a space in a column into seperate columns
    By hobiedog in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. place text seperated by a space in a column into seperate columns
    By Markus L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] place text seperated by a space in a column into seperate columns
    By hobiedog in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. place text seperated by a space in a column into seperate columns
    By hobiedog in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] place text seperated by a space in a column into seperate columns
    By hobiedog in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] place text seperated by a space in a column into seperate columns
    By hobiedog in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. place text seperated by a space in a column into seperate columns
    By hobiedog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1