+ Reply to Thread
Results 1 to 11 of 11

Create a list from numbers in several sheets (Problem)

  1. #1
    Registered User
    Join Date
    04-18-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    20

    Create a list from numbers in several sheets (Problem)

    Hi,

    I am wanting to create a list in a spreadsheet based on information which has a number tagged to it, example below:

    23 RAD 380.0/390.0
    24 DIA 53.0

    So I want to take 23 and the information and then 24 with the information it comes with and place it on another sheet - fairly easy.

    The trouble is some sheets where I get the information from will have the numbers laid out in the style as described below.

    23/24 RAD 380/390
    1+2+3+4+5 DIA 95.0

    How do I get the macro to recognise that 1, 2, 3, 4 and 5 are separate numbers as are 23 and 24?

    I don't want to add them as 23/24 I want to add them as separate numbers on my new sheet......

    Any help if possible, appreciated.

    Thanks

    Phil

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Create a list from numbers in several sheets (Problem)

    Phil - I suggest you attach a workbook with more sample data and illustration of desired results.

  3. #3
    Registered User
    Join Date
    04-18-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Create a list from numbers in several sheets (Problem)

    In the sheet "Control Plan" I want to take the characteristic numbers, plus the other information in the cells next to them and dump then in another workbook.

    The trouble is, numbers 1,2,3,4,5 etc need to be separate, not all together as one. How can I separate them? I.E. recognise them as single numbers and not a whole bunch of numbers together as they are typed.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Create a list from numbers in several sheets (Problem)

    Can you do the illustration of results bit too as it's not clear what is going where? Should be straightforward with a macro.

  5. #5
    Registered User
    Join Date
    04-18-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Create a list from numbers in several sheets (Problem)

    Very rough example of results attached.

    Thanks...
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Create a list from numbers in several sheets (Problem)

    I'm afraid I didn't really follow that, but see if this starts you off. It puts results on "Sheet1":
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-18-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Create a list from numbers in several sheets (Problem)

    Hi,

    That works a treat on separating the numbers with a "/" between them, however when it comes to the sheet which has 1+2+3+4+5 etc it isn't recognising the numbers at all. It just bypasses them.

    Is there any way to separate these numbers too, i.e. make another variable as well as "/" for defining if numbers are there and needs to be recognised and separated?

    Thanks again.

  8. #8
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Create a list from numbers in several sheets (Problem)

    Are those the only two possible separators? Pre-empting, but if so:
    Please Login or Register  to view this content.
    Last edited by StephenR; 05-16-2011 at 09:00 AM.

  9. #9
    Registered User
    Join Date
    04-18-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Create a list from numbers in several sheets (Problem)

    Thanks for your help, that works just great now.

    All I have to do now is work out how it does what it is doing!

    Phil

  10. #10
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Create a list from numbers in several sheets (Problem)

    Another approach
    Please Login or Register  to view this content.



  11. #11
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Create a list from numbers in several sheets (Problem)

    another option, run code "test"
    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)

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