+ Reply to Thread
Results 1 to 4 of 4

Indexing Down Sorted Column to Next Unique Number

  1. #1
    Registered User
    Join Date
    12-15-2006
    Posts
    64

    Indexing Down Sorted Column to Next Unique Number

    I have a column of addresses and phone numbers, each in different adjacent columns, like below.

    17605 Hidden Forest 281-384-3334
    17607 Hidden Forest 281-374-2986
    17607 Hidden Forest 281-374-2986
    17607 Hidden Forest 832-661-2945
    17607 Hidden Forest 281-374-5438

    In an adjacent column I have just the addresses, like below.

    17605 Hidden Forest
    17607 Hidden Forest

    And, I want to pull the phone numbers out of the first two columns when they match the address in the third and if they are unique display them next to the address in the third column, as below.

    17605 Hidden Forest 281-384-3334
    17607 Hidden Forest 281-374-2986 832-661-2945 281-374-5438

    I can use VLOOKUP to find the first number easily. But I'm having trouble indexing down the column to find the subsequent numbers and display them in order.

    Any help would be appreciated.

    LongFisher

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    So do you want your rows to collapse once the phone number has been copied to the appropriate column? And would a VBA solution be acceptable?
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Registered User
    Join Date
    12-15-2006
    Posts
    64

    Vba

    I'm no VBA wiz. And, I just don't have the time to learn it now.

    Regarding the collapsing of the phone numbers. I need them in separate columns and without collapsing the rows.

    Thanks,

    LongFisher

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Have a look at this file. I think it gets you 99% of the way there.
    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