+ Reply to Thread
Results 1 to 5 of 5

Seperating Data

  1. #1
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Seperating Data

    Hello All,

    This forum has been great, I've been learning a lot about VBA. I have a new question.

    I don't know how to describe the object models that I need to use, so I'll just describe what I am trying to do.

    I want to list the different names of data from a list of data. there could be anywhere from 1 - 64 sets of data. Each set of data can be differentiated from one another by the "Name" (column B) of the test, which is before the hyphen("-"). Here is where it gets tricky, the name of the test before the hyphen will always change. I think that if a list of the different test names can be listed, then I can create some formulas within the worksheet (non-vba), to pull the data from the existing table.

    Does this make sense? I've attached a sample copy of the data, in the format that it will be in an excel tab.

    Thanks,
    Bob
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Seperating Data

    Bob1980,

    To make sure I'm understanding you correctly, do you want the result to be this list (using your posted Sample Sheet)?
    111A
    222B
    Iron

    If so, where does that resulting list go? In a sheet of its own? In a specific column? Would you prefer formulas only or a macro or does it not matter?
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Seperating Data

    Give this a try. Will add the results to sheet2

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  4. #4
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: Seperating Data

    Hi Mike,

    Thanks for the help. I had to add
    Please Login or Register  to view this content.
    , but other then that; the code worked like a charm. I'll get going and start parsing this so I can see what's going on. thanks again!

    Bob

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Seperating Data

    Ah I forgot the dim i. Should be dim i as long

+ 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