+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP to return multiple cells of same lookup value

  1. #1
    Registered User
    Join Date
    06-07-2006
    Posts
    57

    VLOOKUP to return multiple cells of same lookup value

    Hi, I am trying to create an automated receipt for a list of artists. I have given the artist an individual reference so I am doing a VLOOKUP to return description/price value etc but I can only get it to return the initial value and I have approx 10-15 works under each reference. Maybe VLOOKUP is the wrong formula to use.. I have attached the file - if some excel whizz out there can give me any ideas it would be a huge help!

    thanks
    Attached Files Attached Files
    Last edited by NBVC; 12-04-2009 at 02:33 PM.

  2. #2
    Valued Forum Contributor khamilton's Avatar
    Join Date
    10-08-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    345

    Re: VLOOKUP to return multiple cells of same lookup value

    Your attachment is password protected

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

    Re: VLOOKUP to return multiple cells of same lookup value

    Is the workbook password protected? Please unprotect it.
    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.

  4. #4
    Registered User
    Join Date
    06-07-2006
    Posts
    57

    Re: VLOOKUP to return multiple cells of same lookup value

    sorry guys! here it is without the password and thank you for taking the time to look
    Attached Files Attached Files

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

    Re: VLOOKUP to return multiple cells of same lookup value

    Please see attached,

    What I did was add a helper column in the Log sheet to count the number of matches, using formula in U7: =COUNTIF(B$7:B7,Receipt!$F$10) copied down

    Then I entered the max number in the main sheet in A16 with formula: =MAX('Art log'!$U:$U) this is to use to let excel know when to start displaying blanks because number of matches is less than number of rows occupied by the formulas.

    Then in A18, used formula: =IF(ROWS($A$18:$A18)>$A$16,"",INDEX('Art log'!E$7:E$31,MATCH(ROWS($A$18:A18),'Art log'!$U$7:$U$31,0)))

    copied down and across the table to extract all matches.

    Adjust any ranges to suit your actual database.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-07-2006
    Posts
    57

    Re: VLOOKUP to return multiple cells of same lookup value

    fantastic, that is exactly what I am looking for. Thank you!

  7. #7
    Registered User
    Join Date
    05-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: VLOOKUP to return multiple cells of same lookup value

    how to use this formula to update new entries. Do i have to always drag down the formula everytime there's a new entry?

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: VLOOKUP to return multiple cells of same lookup value

    This is an old thread.

    Please read the forum rules - especially Rule #2.

+ 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