+ Reply to Thread
Results 1 to 7 of 7

formula to split data to their respective columns

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    EXCEL 2016
    Posts
    1,054

    formula to split data to their respective columns

    Hi
    Looking for a formula to split data drinks to their respective header columns

    See attached of respected results

    Thanks if any can assist
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,500

    Re: formula to split data to their respective columns

    Try this in B2:

    =SUBSTITUTE(SUBSTITUTE(TRIM(MID(SUBSTITUTE("*"&$A2,"*",REPT(" ",250)),COLUMNS($A$2:A2)*250,250)),"ML",""),"L","")

    Copy cross (C2, D2)

    In E2:

    =IF(RIGHT(A2,2)="ML","ML",IF(RIGHT(A2)="L","L",""))

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    2,263

    Re: formula to split data to their respective columns

    something like this?
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    23,826

    Re: formula to split data to their respective columns

    Try

    C to D

    =TRIM(MID(SUBSTITUTE(SUBSTITUTE($A2,"ML"," *ML"),"*",REPT(" ",99)),(COLUMNS($A:A)-1)*99+1,99))

    in E

    =IF(ISNUMBER(SEARCH("ML",A2)),"ML","L")

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formula to split data to their respective columns

    Or with one formula
    Enter in B2 and copy across to E2 and then down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    EXCEL 2016
    Posts
    1,054

    Re: formula to split data to their respective columns

    Phuocam,azumi,JohnTopleyAlKey thank you all for different approach.

  7. #7
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to split data to their respective columns

    Quote Originally Posted by azumi View Post
    something like this?
    https://www.excelforum.com/showthread.php?t=1040120




    --------------------
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Split data by delimiters but by formula (not Text to Columns)
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2016, 05:44 AM
  2. [SOLVED] Formula for automatically multiply two respective cells in columns and then sum up
    By dino4u86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2015, 02:27 AM
  3. Split records into respective worksheet but different workbook
    By fluffyvampirekitten in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2015, 07:06 AM
  4. Formula to Split Data between two columns
    By sx200n in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2015, 06:50 AM
  5. [SOLVED] Formula required to split uneven data into different columns
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-14-2015, 04:25 AM
  6. Replies: 2
    Last Post: 07-17-2014, 03:45 AM
  7. Inserting the data in to respective columns
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-11-2013, 03:53 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