+ Reply to Thread
Results 1 to 14 of 14

Place text values into desired columns

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Place text values into desired columns

    Looking for formula to place text values in column A:C (color yellow) into desired columns (in green color). Thanks

    See attached file.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Place text values into desired columns

    Formula solution for this would most likely require many helper columns. Is that ok?

    Or a VBA solution could do it as well.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,045

    Re: Place text values into desired columns

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place text values into desired columns

    JBeaucaire: Helper column is great. No need for VBA. Thanks.

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place text values into desired columns

    Bernie Deitrick: Could you please help with using Helper Column? Thanks.

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,045

    Re: Place text values into desired columns

    No - your delimiter between strings within one cell is not ideal for formulas. You would need a total of 11 more columns, with convoluted formulas that would be hard for me to write and for you to maintain. Just use my macro. It worked perfectly.

  7. #7
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Place text values into desired columns

    formula at D2 (array formula)
    =IFERROR(INDEX($A2:$C2,SMALL(IF(LEN($A2:$C2),COLUMN($A2:$C2)),COLUMN(A1))),"")
    copy cross and down

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,045

    Re: Place text values into desired columns

    That does nothing to split the values in the doubled cells.

  9. #9
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place text values into desired columns

    Ghozi Alkatiri : did not split the values in the doubled cells. Take a look for correction. Non-array formula (without SHIFT + ALT + ENTER) will also be welcome. Thanks.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Place text values into desired columns

    I was well on the way for developing the formulas with 2 helpers columns, but the work I was doing was predicated on the DELIMITER being period+comma+space. All was well until I got to row 24 of your sample data, where I ran into the same string of characters (period+comma+space) being utilized within a single entry.

    Since your delimiter string is not unique, a formula will break on rows like that.

    Sorry. Your data is incompatible with your need.

    Here is the crazy set of formulas I worked out, works for the sample data except for row24.
    Last edited by JBeaucaire; 03-23-2020 at 06:56 PM.

  11. #11
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,045

    Re: Place text values into desired columns

    I think the delimiters need to either , 1 or , 2 - seems like a year begins the second string.

  12. #12
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place text values into desired columns

    Bernie Deitrick: Thanks for the VBA code. The code works like charm for the initial post request. Could you please take a look at the attached file and adjust your VBA code to achieve desired results.

    Thanks.

  13. #13
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Place text values into desired columns

    JBeaucaire: wow....thank you very much for setting this up. I think VBA is my best option. The VBA code Bernie Deitrick proposed works, but I have attached a new file for him to take a look and adjust the VBA code to achieve desired results.

  14. #14
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,045

    Re: Place text values into desired columns

    Please Login or Register  to view this content.

+ 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. Place values into desired results column based on year & names
    By bjnockle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2020, 05:29 AM
  2. Formula to up the code to the desired place
    By reimar_rem in forum Excel General
    Replies: 1
    Last Post: 05-10-2018, 11:09 AM
  3. [SOLVED] Place text from multiple columns into one cell based on another columns value
    By minesht in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2015, 05:44 PM
  4. Printing data from cell in desired place on paper
    By pic2pic in forum Excel General
    Replies: 5
    Last Post: 01-11-2013, 09:09 AM
  5. Replies: 0
    Last Post: 08-03-2012, 04:31 PM
  6. Replies: 2
    Last Post: 02-13-2008, 04:29 PM
  7. [SOLVED] Count number of times two columns have desired values
    By Gavin Deveau in forum Excel General
    Replies: 2
    Last Post: 06-16-2006, 01:35 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