+ Reply to Thread
Results 1 to 4 of 4

Text to column using formula

  1. #1
    Registered User
    Join Date
    08-03-2020
    Location
    Switzerland
    MS-Off Ver
    Excel 2016
    Posts
    2

    Text to column using formula

    Hi all,

    Thanks in advance for anyone taking their time to help out!
    I am an excel novice, who usually finds answers on google but this one is unfortunately too difficult to solve. I need to split information from one cell into 4 different columns using formula (trying to avoid the manual text to column option as everything else has be optimized).

    - The information that needs to be split comes in the following format: 2000/100/200/300
    - 2000 needs to go into column B, 100 into column C, 200 into column D and 300 into column E
    - The numbers can range between 0-9999
    - The following character always separates the numbers: /

    Can anyone help?

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Text to column using formula

    Try this: =TRIM(MID(SUBSTITUTE($A2,"/",REPT(" ",LEN($A2))),(COLUMN(A1)-1)*LEN($A2)+1,LEN($A2)))
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    08-03-2020
    Location
    Switzerland
    MS-Off Ver
    Excel 2016
    Posts
    2

    Re: Text to column using formula

    Thanks a lot! That seems to work although I don't understand it

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Text to column using formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 1
    Last Post: 04-04-2019, 12:19 AM
  2. VBA to lookup text in one column then apply formula to number in another column
    By Evan69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2017, 02:01 AM
  3. Replies: 9
    Last Post: 11-08-2015, 08:04 PM
  4. Replies: 2
    Last Post: 04-16-2014, 05:13 PM
  5. [SOLVED] Create formula to sum column total if specific text is present in second column
    By Banir in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 07:48 AM
  6. [SOLVED] Simple formula to match column A, sheet1, with column A, sheet2, return text answer
    By Connie5761 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-14-2012, 02:56 PM
  7. Replies: 1
    Last Post: 04-15-2008, 01:59 AM

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