+ Reply to Thread
Results 1 to 2 of 2

Need to get multiple values based on a single value

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    1

    Need to get multiple values based on a single value

    I have a table that contains company to company transactions and need to reconcile.

    Instead of using a vlookup that only returns the first match, I need to get all transactions for a single company.

    Here's the formula I've started with. It works fine for the first item it finds, but doesn't return any values afterwards. (e.g 2nd, 3rd instance. Also, when I don't make it an array formula it doesn't return anything.)

    =IF(ISERROR(INDEX('DATA-CVB'!$C$4:$Q$1000,SMALL(IF('DATA-CVB'!$C$4:$C$1000=$B$6,ROW('DATA-CVB'!$C$4:$C$1000)),ROW('DATA-CVB'!4:4)),6)),"",INDEX('DATA-CVB'!$C$4:$Q$1000,SMALL(IF('DATA-CVB'!$C$4:$C$1000=$B$6,ROW('DATA-CVB'!$C$4:$C$1000)),ROW('DATA-CVB'!4:4)),6))

    In this case, I'm trying to match the value in B6 of current worksheet to a list found in worksheet DATA-CVB. Whenit finds a match, I want the value found in the 6th column of the row it found the data in.

    Any ideas?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to get multiple values based on a single value

    Try:

    Please Login or Register  to view this content.

    confirmed with CTRL+SHIFT+ENTER
    and copied down.

    If you don't want to use array formulas, then you can do it using a helper column.

    in the DATA-CVB sheet, in an available column, say column Z, in Z2, enter:

    Please Login or Register  to view this content.
    and copy it down where Sheet1 is sheetname of your sheet containing the final summary.

    then in a blank cell in another column, say AA1,
    Please Login or Register  to view this content.
    Then formula in your final summary sheet.

    Please Login or Register  to view this content.
    Last edited by NBVC; 05-11-2010 at 01:55 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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