+ Reply to Thread
Results 1 to 8 of 8

Help with adjusting Index lookup formula to include additional lookup criteria

  1. #1
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2016
    Posts
    178

    Question Help with adjusting Index lookup formula to include additional lookup criteria

    Hi all,

    I managed to get this array formula to work, which returns the value in column F (Lookup! table) based on two criteria (D3 and D4) on my main worksheet.

    Please Login or Register  to view this content.
    The reason why I am using this formula (and not lookup, sumproduct or else) is because I am trying to lookup multiple values in a table based on the same criteria (see as an example here: "Formula 3. Vlookup multiple matches based on multiple conditions")

    Now I am trying to add in another lookup criteria for D5 which should lookup the value in Lookup!C2:C500 and return the same result as the formula above (basically just checking for a 3rd criteria). I've tried this, but it gives me a #Num error :-(

    Please Login or Register  to view this content.
    Do you guys have an idea why or what I am doing wrong?
    Many thanks for your help!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,876

    Re: Help with adjusting Index lookup formula to include additional lookup criteria

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn



  3. #3
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2016
    Posts
    178

    Re: Help with adjusting Index lookup formula to include additional lookup criteria

    Hi Glenn,

    Sure - there you go! Hope all is clear? Basically just want the formula to also check for the date value in the data (in addition to customer name and project).
    Hope this works...

    Thanks for your help!
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,876

    Re: Help with adjusting Index lookup formula to include additional lookup criteria

    Strange looking formula!! Try variants of this one, instead:

    =IFERROR(INDEX(Lookup!F:F,AGGREGATE(15,6,ROW(Lookup!$D$2:$D$500)/((Lookup!$D$2:$D$500=Invoice!$D$3)*(Lookup!$A$2:$A$500=Invoice!$D$4)*(Lookup!$C$2:$C$500=Invoice!$D$5)),ROWS($1:1))),"")

    It is anordinary (non-array) formula.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2016
    Posts
    178

    Re: Help with adjusting Index lookup formula to include additional lookup criteria

    Hi Glenn,

    Works perfectly! Thanks so much I owe you a beer or something!

    Cheers!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,876

    Re: Help with adjusting Index lookup formula to include additional lookup criteria

    Cyberbeer... You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  7. #7
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    2016
    Posts
    178

    Re: Help with adjusting Index lookup formula to include additional lookup criteria

    You should setup a paypal page!!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,876

    Re: Help with adjusting Index lookup formula to include additional lookup criteria

    If I started accepting cyberbeer, or taking part in the Commercial Services section of the EF, it would soon cease to be fun and be mostly about the money. I don't do either... so it doesn't matter (too much) if I foul up totally.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Lookup a value within a range with 2 additional criteria, return a value
    By gaker10 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2018, 08:17 PM
  2. [SOLVED] Index Match Lookup Formula with Multi Criteria
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2018, 06:37 PM
  3. [SOLVED] Index & Match Formula to Get Value; If Criteria meets less than or Equal to Lookup Value
    By Rajeshkumar R in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-16-2017, 12:59 PM
  4. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  5. Need an array possibly INDEX/MATCH formula with multiple lookup criteria.
    By TheClaw2323 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2015, 09:59 AM
  6. [SOLVED] INDEX/MATCH Lookup based on Data from two additional sheets
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-08-2015, 02:07 PM
  7. [SOLVED] Lookup formula to find lowest value with variable lookup criteria
    By brharrii in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2015, 03:00 AM

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