+ Reply to Thread
Results 1 to 8 of 8

Parsing numbers in strings/numbers concatenated together - CONT'D

  1. #1
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    181

    Parsing numbers in strings/numbers concatenated together - CONT'D

    A couple days ago, a user supplied me with the below code that worked but it seems like I hit a snag.
    The objective is to loop through a range(cells contain number and/or string or possibly just numbers) and
    no matter what order they are in put them in sequential order. File is attached.

    Please Login or Register  to view this content.
    So if the sheet starts out like this:

    1500 b= b
    1501 c = c
    1502 d = d
    1503 e = e
    14971498
    1499 a = a
    1504 f = f

    this is the result:

    1497
    1498
    1499 a = a
    1500 b= b
    1501 c = c
    1502 d = d
    1503 e = e
    1504 f = f

    Now - if I put a character between 1497r1498 for example, I get:

    1497r1498

    Is there a way I can still have that character and get:

    1497r
    1498

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    181

    Re: Parsing numbers in strings/numbers concatenated together - CONT'D

    Bumping up this thread.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Parsing numbers in strings/numbers concatenated together - CONT'D

    Like so:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,666

    Re: Parsing numbers in strings/numbers concatenated together - CONT'D

    This should do.
    Please Login or Register  to view this content.
    Last edited by jindon; 05-28-2014 at 12:33 AM.

  5. #5
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    181

    Re: Parsing numbers in strings/numbers concatenated together - CONT'D

    Thank you both of you...these ideas seemed to work....how about for these scenarios?

    I'm thinking now that I should have said this earlier - sorry about that.

    1498ccc. "bbb1497ccc.1499cccc.

    Can I get:

    1497ccc. "bbb
    1498ccc.
    1499cccc.

    Or:

    222 aaa ll224bbbmm
    223 aaa "
    221 mmm "

    Can I get:
    221 mmm "
    222 aaa ll
    223 aaa "
    224 bbbmm

    Just trying to put random stuff in there.

    I was really wasn't clear on this and I apologize.

    Thank you.

  6. #6
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    181

    Re: Parsing numbers in strings/numbers concatenated together - CONT'D

    First one should be:

    1497ccc.
    1498ccc. "bbb
    1499cccc.

    oops

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,666

    Re: Parsing numbers in strings/numbers concatenated together - CONT'D

    Post a workbook.

  8. #8
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    181

    Re: Parsing numbers in strings/numbers concatenated together - CONT'D

    Soory about that.
    Attached Files Attached Files

+ 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] Parsing numbers in strings/numbers concatenated together
    By twckfa16 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-20-2014, 10:37 AM
  2. numbers in concatenated columns not recognised
    By Linden in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2010, 11:23 AM
  3. Sum a range of cells containing numbers with letters concatenated
    By KernelK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2008, 06:18 AM
  4. Replies: 2
    Last Post: 12-22-2005, 01:30 PM
  5. [SOLVED] Sorting Numbers with Multiple Decimals (cont.)
    By Intern Ian in forum Excel General
    Replies: 5
    Last Post: 09-20-2005, 08:05 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