Consulting

Results 1 to 3 of 3

Thread: List of Categories/Units given in a table of data

  1. #1
    VBAX Contributor Daxton A.'s Avatar
    Joined
    Jun 2004
    Location
    Biloxi, Mississippi
    Posts
    143
    Location

    List of Categories/Units given in a table of data

    I have a list of 5,000 categories and they are not listed in any given order. I am needing a list of different unit types. I started creating loops in vba that are nested and that seems really long. So is there a quicker way for this to be done?

    Example:
    =======
    A
    A
    C
    D
    A
    D

    Result:
    A
    C
    D
    “All right now ya wise guy … Dance!”

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Are you still on Office 2000? I hope not.
    =SORT(UNIQUE(A2:A5001))
    ?
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Contributor Daxton A.'s Avatar
    Joined
    Jun 2004
    Location
    Biloxi, Mississippi
    Posts
    143
    Location
    Wow...thanks p45cal! Taught an old dog a new trick! And no, I am running 365 but I have slacked off a bit on learning new functions. That's why I have to use VBAexpress as a crutch!

    Thanks!
    “All right now ya wise guy … Dance!”

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •