+ Reply to Thread
Results 1 to 7 of 7

Search for multiple criteria and return value

  1. #1
    Registered User
    Join Date
    12-16-2017
    Location
    Somerset, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    60

    Search for multiple criteria and return value

    I already use a index match formula on a different spread sheet which works exactly as it should so thought i understood the formula, however, when i have used it again on a different sheet to achieve the exact same goal, the correct data is not displayed and I can not for the life of me work out why!

    I have attached an example spreadsheet and would appreciate anyone's help, i suspect I am missing something very small, however, who knows!

    Cell F2 on Google sheet- It should show data for site 1 for 30/09/2022 which it does

    Cell G2, H2 and I2 on Google sheet- These should show data for the corresponding site for 30/09/2022 , however, none of them do
    Attached Files Attached Files
    Last edited by tjdate; 09-30-2022 at 07:30 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,991

    Re: Search for multiple criteria and return value

    Try this in F2:

    =IFERROR(INDEX('Connect team'!$I$2:$FA429,MATCH($B2,'Connect team'!$E$2:$E$500,0),
    MATCH(F1,'Connect team'!$I$1:$FA$1,0)),"Error")

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,791

    Re: Search for multiple criteria and return value

    Is this a GoogleSheets or Excel query?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    12-16-2017
    Location
    Somerset, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    60

    Re: Search for multiple criteria and return value

    It is an Excel query, the data is being imported from a google sheet.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,531

    Re: Search for multiple criteria and return value

    Try

    =IFERROR(INDEX('Connect team'!$I$2:$FA429,MATCH($B2,'Connect team'!$E$2:$E$500,0),MATCH(F1,'Connect team'!$I$1:$GA$1,0)),"Error")

    Your rows/columns in your formula are reversed.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    12-16-2017
    Location
    Somerset, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    60

    Re: Search for multiple criteria and return value

    Thanks Phuocam and JohnTopley. Cant work out why this makes a difference, however, it does and it works so thank you.

    It has however raised another problem, however, I will post that as a separate post if i cant solve it.

    Thank you for your time.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,791

    Re: Search for multiple criteria and return value

    In an INDEX MATCH MATCH, the row will be the first match and the column the second - that's what Excel expects. It's a simple rule, and once you get it, you won't make the same mistake again. Think in terms of xy co-ordinates - x comes before y.

+ 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. search multiple criteria and return multiple values within the same cell
    By winsomeness in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-16-2022, 04:59 AM
  2. [SOLVED] Search multiple criteria and return multiple results with Closest value
    By palash1010 in forum Excel General
    Replies: 1
    Last Post: 05-28-2020, 12:23 AM
  3. [SOLVED] Macro- Search multiple criteria in spreadsheet return with multiple results in new sheet
    By nicebeaches in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2018, 04:47 PM
  4. Replies: 2
    Last Post: 05-12-2014, 08:21 AM
  5. Replies: 5
    Last Post: 06-21-2012, 10:36 AM
  6. User Form to Search multiple Criteria to return multiple Results
    By Calieth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2011, 11:57 AM
  7. Search for multiple criteria then return result
    By ctrapper in forum Excel General
    Replies: 7
    Last Post: 03-15-2011, 09:03 PM

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