+ Reply to Thread
Results 1 to 2 of 2

Data validation drop down list - vlookup / match criteria to display in list

  1. #1
    Registered User
    Join Date
    06-27-2008
    Location
    exeter
    Posts
    30

    Data validation drop down list - vlookup / match criteria to display in list

    I have my deliveries sheet and my goal is to have a drop down list under the cost per unit row which when selected searches the orders sheet for the order number of that item, then I select the item from the drop down list and once selected the cost per unit is returned. Is that possible to acheive?

    I ahve attached my example
    Attached Files Attached Files

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

    Re: Data validation drop down list - vlookup / match criteria to display in list

    In order to do it, you would have to name the sheets the same as the column E names, so we can find the sheet, then you would need to add another column to do the data validation choosing, then have the lookup formula in your cost/unit column. See attached.

    Note the data validation assumes max 1000 rows in each supplier sheet.

    The Data Validation formula applied to produce the lists is:

    =INDEX(INDIRECT("'"&$E2&"'!C3:C1000"),MATCH($I2,INDIRECT("'"&$E2&"'!B3:B1000"),0)):INDEX(INDIRECT("'"&$E2&"'!C3:C1000"),MATCH(2,1/(INDIRECT("'"&$E2&"'!B3:B1000")=$I2)))

    this also assumes that the invoice numbers are grouped together in the supplier sheets....

    the formula to get unit price is:

    =SUMPRODUCT(--(INDIRECT("'"&E2&"'!B2:B1000")=I2),--(INDIRECT("'"&E2&"'!C2:C1000")=J2),INDIRECT("'"&E2&"'!F2:F1000"))

    or if you have Excel 2007 or later, you can use the more efficient:

    =SUMIFS(INDIRECT("'"&E2&"'!F2:F1000"),INDIRECT("'"&E2&"'!B2:B1000"),I2,INDIRECT("'"&E2&"'!C2:C1000"),J2)
    Attached Files Attached Files
    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)

Tags for this Thread

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