+ Reply to Thread
Results 1 to 11 of 11

Vlookup with 3 search Criteria

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    Vlookup with 3 search Criteria

    Hello Excel Gurus, I have a problem for you to solve and I have attached the spreadsheet for you.
    If under transportation costs, the Supplier, Item, and Plant Match up with the corresponding Bid Price for Supplier, Item, and Plant, I want Excel to perform a function to add those two costs for that respective year and return a value in column AJ, AK, & AL for each year.


    Hope you guys can help me on this one.

    thanks
    Brett
    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: Vlookup with 3 search Criteria

    what do you mean by "add up those two costs"? Can you give example of results expected for first few items?
    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.

  3. #3
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Vlookup with 3 search Criteria

    Yes,
    In the highlighted fields, the 2013 Transportation Costs and the 2013 Bid Price are added together only when the 3 search criteria (Site, Part, and Supplier) correspond to each other. I need a function to search the three criteria in Z, AA,& AB and find the matching 3 criteria in columns S, T, & U, and then add the two costs outlined above.

    Does this help explain it?(see attached)
    Attached Files Attached Files

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

    Re: Vlookup with 3 search Criteria

    Try:

    Please Login or Register  to view this content.
    copied across and down

  5. #5
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Vlookup with 3 search Criteria

    Hi NBVC,
    Thanks for the quick response but Its giving the ?Name Error. Any thoughts?

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

    Re: Vlookup with 3 search Criteria

    Are you working in 2003 or 2007 version?

  7. #7
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Vlookup with 3 search Criteria

    working in 2003

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

    Re: Vlookup with 3 search Criteria

    Your workbook was .xlsx

    If in 2003, try:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Vlookup with 3 search Criteria

    Thoroughly Impressed,
    Can I ask why you used 2 "sumproducts" in the formula?

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

    Re: Vlookup with 3 search Criteria

    One is for the first table, the other is for the second table.

    Sumproduct adds values in a range, based on criteria being met in the same rows, so unless the rows in each table were aligned, we need to make 2 separate summaries and add together.

  11. #11
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Vlookup with 3 search Criteria

    Im so impressed with that formula.

    thanks for the insight
    -B

+ 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