+ Reply to Thread
Results 1 to 20 of 20

Separate sequence of numbers with sequence of letters

  1. #1
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Separate sequence of numbers with sequence of letters

    Dear,

    could someone help me please, I have a series of excel having sequence of numbers separated by letters like that:
    Colu1
    1 d 23 h 45 m 2 s
    3 h 4 m 55 s
    3 d 34 m
    22 s
    .
    .
    .
    and I would like to separate like that:
    Colu(d) Colu(h) Colu(m) Colu(s)
    1 23 45 2
    0 3 4 55
    3 0 34 0
    .
    .
    .

    thank you in advance for your help.

    Regards,

  2. #2
    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,780

    Re: Separate sequence of numbers with sequence of letters

    Which version of Excel are you using?
    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.

  3. #3
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Separate sequence of numbers with sequence of letters

    Dear,

    I have 2010 is my version.

    Regards,

  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,780

    Re: Separate sequence of numbers with sequence of letters

    Then please update your forum profile. Thanks.

    In B2 copied across and down:

    =IFERROR(--TRIM(MID($A2,IF(FIND(B$1,$A2)-3=0,FIND("d",$A2)-2,FIND(B$1,$A2)-3),2)),"")

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    1
    d h m s
    2
    1 d 23 h 45 m 2 s 1 23 45 2
    3
    3 h 4 m 55 s 4 55
    4
    3 d 34 m 3 34
    5
    22 s 22
    Sheet: Sheet1
    Last edited by AliGW; 07-02-2020 at 06:21 AM.

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Separate sequence of numbers with sequence of letters

    Just to clarify - is each line an entry in a single column cell??

  6. #6
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Separate sequence of numbers with sequence of letters

    Dear AliGW,

    thank you sooo much for your help .

    Regards,

  7. #7
    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,780

    Re: Separate sequence of numbers with sequence of letters

    Updated:

    =IFERROR(--TRIM(MID($A2,IF(FIND(B$1,$A2)-3=0,FIND("d",$A2)-2,FIND(B$1,$A2)-3),2)),"")

    This will return clean number values.

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

    AND please update your forum profile!!!

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Separate sequence of numbers with sequence of letters

    @ Ali, is second row correct??

  9. #9
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Separate sequence of numbers with sequence of letters

    Dear, regarding the update is it working with version 2010! Regards,

  10. #10
    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,780

    Re: Separate sequence of numbers with sequence of letters

    Update (corrected):

    =IFERROR(--TRIM(MID($A2,IF(FIND(B$1,$A2)-3=0,FIND(B$1,$A2)-2,FIND(B$1,$A2)-3),2)),"")

    Please use this version.

    EDIT: Nige - just spotted that myself, but thanks!

  11. #11
    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,780

    Re: Separate sequence of numbers with sequence of letters

    Quote Originally Posted by dell001 View Post
    Dear, regarding the update is it working with version 2010! Regards,
    But your forum profile says 1989 - please change this to 2010. Thanks.

    You must use the formula in post #7!

  12. #12
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Separate sequence of numbers with sequence of letters

    Dear, I will and it work perfect it like a magic waoooo thank you I was doing it manual and it take me a lot times.
    you save my day thank you again. Regards

  13. #13
    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,780

    Re: Separate sequence of numbers with sequence of letters

    PLEASE UPDATE YOUR FORUM PROFILE!!!

    The version of Excel you have is incorrect - change it from 1989 to 2010, please.

    Then mark the thread as SOLVED.

  14. #14
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Separate sequence of numbers with sequence of letters

    Dear AliiGW, how to make the thread as Solved ?

  15. #15
    Registered User
    Join Date
    02-20-2018
    Location
    LEEDS
    MS-Off Ver
    2010
    Posts
    25

    Re: Separate sequence of numbers with sequence of letters

    Dear, it done I found it thank you so much again have nice day

  16. #16
    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,780

    Re: Separate sequence of numbers with sequence of letters

    Fab - thanks!

  17. #17
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,231

    Re: Separate sequence of numbers with sequence of letters

    Am I missing something...

    and I would like to separate like that:
    Colu(d) Colu(h) Colu(m) Colu(s)
    1 23 45 2
    0 3 4 55
    3 0 34 0

    does the d, h, m s not refer column letters...
    meaning the values transposed to those columns...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  18. #18
    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,780

    Re: Separate sequence of numbers with sequence of letters

    Yes, you are missing the fact that the OP wanted columns with those labels in row 1. The solution I offered does what (s)he wants - see post #4 for the layout.

  19. #19
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,231

    Re: Separate sequence of numbers with sequence of letters

    No worries...Was just inquiring...

    As this below to me means...Column D, Column H, Column M, Column S
    Colu(d) Colu(h) Colu(m) Colu(s)

  20. #20
    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,780

    Re: Separate sequence of numbers with sequence of letters

    That's what I wondered to start with, but realised that writing the formula would be easier with the headers on row 1, so had my fingers crossed!!!

+ 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. Add letters after numbers in a sequence, each separated by commas
    By craigymac in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-01-2019, 05:56 PM
  2. [SOLVED] UDF to number a sequence of numbers of letters
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2014, 12:53 AM
  3. The Sequence Of Letters/numbers
    By EmilR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2013, 12:28 AM
  4. Numbers With Letters Out of Sequence
    By llmarsh3 in forum Word Formatting & General
    Replies: 4
    Last Post: 11-26-2011, 12:41 PM
  5. Replies: 2
    Last Post: 10-13-2011, 02:35 AM
  6. Replies: 2
    Last Post: 11-15-2008, 03:06 PM
  7. How do I drag the sequence of letters/numbers?
    By rippingrudy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2007, 08: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