+ Reply to Thread
Results 1 to 19 of 19

Split Cells data into specific columns

  1. #1
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Split Cells data into specific columns

    Hello Experts,

    Every week I get the column A, with the same or similar items, and every week I need to split "description", "gr" & "mm", so I would prefer anyone help me to build a formula for columns B, C & D, and then I would just have to paste my source data into column A, and the rest of columns would appear automatically.

    Thanks in Advance
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by AaruJaan; 06-30-2017 at 07:06 PM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Split Cells data into specific columns

    This proposed solution employs a helper column which may be hidden for aesthetic purposes.
    The formula for the helper column (E) is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for column B is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for column C is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for column D is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Split Cells data into specific columns

    Thanks JeteMc, I have put the formulas but formula is not working.

  4. #4
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Split Cells data into specific columns

    Sorry JeteMc formula is working but I don't want gr or mm with numbers, can you help on this?

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Split Cells data into specific columns

    Deleted by JeteMc

  6. #6
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Split Cells data into specific columns

    I have uploaded, just problem in number columns, I don't want gr or mm with numbers.

  7. #7
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Split Cells data into specific columns

    Please Login or Register  to view this content.
    Kind regards
    Leo

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Split Cells data into specific columns

    Quote Originally Posted by farhangul View Post
    I have uploaded, just problem in number columns, I don't want gr or mm with numbers.
    farhangul where is the upload? All I see in post#1 is a screenshot.

    It is helpful to upload a sample Excel workbook.

    If you are not familiar with how to do this:


    To attach a file to your post,
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  9. #9
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Split Cells data into specific columns

    I uploaded file please check post#1

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Split Cells data into specific columns

    Modify the formula in column C to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Modify the formula in column D to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Split Cells data into specific columns

    JeteMc, this formula is not working,

  12. #12
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Split Cells data into specific columns

    you can put this formula into my excel file.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Split Cells data into specific columns

    Here are the formulas applied to the file that is now attached to post #1.
    Note: the formulas in columns C and D have been wrapped in the VALUE function in the event that you would like to use the grams and/or mm's in further calculations. If you prefer the cells in columns C and D to display as text, remove the VALUE( function along with the last parenthesis.
    Let us know if you have any questions.
    Note: the formulas do not correctly parse the text in row 53 which is much different from that above or given in the screen shots.
    Let us know if you have any questions.
    Attached Files Attached Files

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Split Cells data into specific columns

    Another way. It's a bit long. Enter in B2 fill across and down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Split Cells data into specific columns

    Code after Button


    Kind regards
    Leo
    Attached Files Attached Files

  16. #16
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Split Cells data into specific columns

    B2=LEFT(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&1/17))-1)
    C2=LOOKUP(10^10,RIGHT(LEFT($A2,SEARCH(C$1,$A2)-1),{1,2,3,4,5,6})+0)
    D2=LOOKUP(10^10,RIGHT(LEFT($A2,SEARCH(D$1,$A2)-1),{1,2,3,4,5,6})+0)

    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  17. #17
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Split Cells data into specific columns

    or
    b2=IFERROR(LEFT($A2,SEARCH(C2&C$1,A2)-1),LEFT($A2,SEARCH(D2&D$1,A2)-1))
    try this and copy towards down

  18. #18
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Split Cells data into specific columns

    Thank You Very Much All Experts

  19. #19
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Split Cells data into specific columns

    You're Welcome and Thank You for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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 Column into Multiple Columns Based Off Specific Criteria
    By hellzone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2017, 09:49 PM
  2. [SOLVED] formula for data to be split to specific columns
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2017, 03:50 PM
  3. [SOLVED] Delete Duplicate Data from certain cells in specific columns
    By telcocook in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2017, 07:40 AM
  4. [SOLVED] Excel - Compare data based upon specific criteria split into columns and delimiters
    By Funkadlic01 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-01-2017, 09:36 PM
  5. [SOLVED] Split specific chars in one column to other columns with no delimiter
    By Fjalar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2013, 12:28 PM
  6. split data into 2 cells, text to columns
    By ericc2728 in forum Excel General
    Replies: 7
    Last Post: 02-26-2009, 03:03 PM
  7. Text to Columns - Only want to split SPECIFIC NUMBER of times
    By NewKid in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-03-2006, 10:45 AM

Tags for this Thread

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