+ Reply to Thread
Results 1 to 24 of 24

splitting out data from 1 cell into multiple

  1. #1
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Talking splitting out data from 1 cell into multiple

    hi guys,

    i'm looking to split data from 1 cell (Green background in book 2) i require the text marked in red to be split into different cells - these values will change with different data being inputted in.

    please can you help with splitting XX25, X-XRNB and L1,102,097,178,189/
    L2,087,083,191,195/
    L3,088,093,196,194

    into seperate cells - similar to the attached picture. which ive annotated - require for L2 and L3 also just didnt want to make the pic messy Book2.xlsxCapture.PNG

    many thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    OK - for starters, you cannot split stuff into merged cells, so you are going to need to rethink your proposed outpout. Merged cells are a big no-no - Satan's spawn.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    Hi Ali,

    no problem i've removed the merged cells so it can look like this Capture.PNG

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

    Re: splitting out data from 1 cell into multiple

    There are still merged headers.

    Please add the mock-up of your required output to the sample workbook. Thanks.

  5. #5
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    Book2.xlsx

    Hi Ali, now ammended and attached

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    Thanks - I'll have a look soon.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    Are the markers always FI, AN, L1, etc.?

    If not, then we need more samples and you need to explain the logic to us.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    No reply ...

    So paste this into A10 and hit ENTER:

    =LET(l,TEXTSPLIT(TEXTBEFORE("L1"&TEXTAFTER(B2,"L1"),"/",-1),",","/"),IFERROR(--l,l))

    Does this work for the L numbers?

  9. #9
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    Hi Ali
    yes the markers do not change the only thing that changes from the body of text is where i've highlighted red (excluding L1,L2,L3) . FI and AN will always be present. L1 , L2 , L3 will also always be present

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    OK - good. Try this in A10:

    Please Login or Register  to view this content.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    And with headers:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 08-28-2024 at 04:31 AM. Reason: Workbook added.

  12. #12
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    WOWW Ali Amazing!!!! its working - thanks so much

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    Glad to have helped.

    If you want me to explain, just shout ...

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  14. #14
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    i will work on the rest of the data and if any issues will advise but thanks will close post once i've replicated this on the other sets of data

    Thank youu

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    Oops! It should be this (I got rg and fn the wrong way round):

    Please Login or Register  to view this content.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    In case there are multiple rows of data:

    Please Login or Register  to view this content.

  17. #17
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    Hi Ali
    this works perfect, the only issue is the date is set - is there any way you can have the date pulled for the seperate rows? i think due to the last row in formulae state A2,"dd/mm/yyyy")) so its pulling just the date from A2

  18. #18
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    image (1).png

    so im just seeing the date in A2 throughout the data

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    Will have a look - been gardening, and now waiting for a call, so may not be until tomorrow morning.

  20. #20
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    no problem, thanks Ali

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    This will work as long as there are three rows generated per row of source data:

    Please Login or Register  to view this content.
    If not, then you will need to provude a slightly more extensive set of more realistic data. For future reference, supplying only one row of sample data is never a good idea.

    If you want the dates to be real dates and not text, change this:

    TEXT(y,"dd/mm/yyyy")

    to this:

    INT(y)

    and format that column as Short Date using number formatting.
    Attached Files Attached Files
    Last edited by AliGW; 08-29-2024 at 03:11 AM. Reason: Typo fixed.

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

    Re: splitting out data from 1 cell into multiple

    Quite unexpectedly, this also seems to work:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 08-29-2024 at 03:19 AM.

  23. #23
    Registered User
    Join Date
    01-16-2024
    Location
    London
    MS-Off Ver
    M365 Ver 2302
    Posts
    22

    Re: splitting out data from 1 cell into multiple

    perfect that works well!!! thanks for your time and help Ali - wish you a wonderful day - Thanks again!!!!!

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: splitting out data from 1 cell into multiple

    You're welcome!

    I was pleased to discover that OFFSET worked unexpectedly, so I got something out of it, too.

    PS That one should work if there are uneven rows.
    Last edited by AliGW; 08-29-2024 at 09:43 AM.

+ 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] Splitting data in one cell to multiple ones
    By ccursed in forum Excel General
    Replies: 5
    Last Post: 05-17-2021, 07:10 AM
  2. [SOLVED] Splitting data in cell to multiple columns
    By Nordin1980 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-03-2017, 10:27 AM
  3. Replies: 14
    Last Post: 08-20-2014, 05:46 AM
  4. Splitting data in a cell in to multiple cells
    By Excelrookie_1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2012, 08:33 AM
  5. Replies: 7
    Last Post: 08-16-2010, 11:48 AM
  6. Splitting data in one cell into multiple cells
    By kortneymoel in forum Excel General
    Replies: 6
    Last Post: 11-19-2009, 07:11 AM
  7. Splitting data from a cell to multiple rows
    By mukul.saxena in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-27-2009, 02:09 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