+ Reply to Thread
Results 1 to 24 of 24

Index match with multiple criteria

  1. #1
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Question Index match with multiple criteria

    Find a value of time that is satisfied the condition:
    B2:B23=H2
    C2:C23=I2
    Date < 30 of today
    Average is D2:D23-J2<=±5

    *Answer is highlighted in yellow (output is time)

    Please see attach file.Please help. Sorry for inconvenience in my first post.
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Index match with multiple criteria

    Not clear idea. But i assume you required result in J2. with two criteria column b&c, from today date but less than 30 days.
    Try with in "J2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index match with multiple criteria

    Please try
    if no duplicate date

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    of this if any duplicate date
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by avk View Post
    Not clear idea. But i assume you required result in J2. with two criteria column b&c, from today date but less than 30 days.
    Try with in "J2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -Thanks sir but my needed output is time in time column.

  5. #5
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    Please try
    if no duplicate date

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    of this if any duplicate date
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -Thanks sir for help but its still not working

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index match with multiple criteria

    Sorry, I thought you want 303 for answer.

    index.jpg

  7. #7
    Registered User
    Join Date
    11-22-2018
    Location
    Roma,Italia
    MS-Off Ver
    2013
    Posts
    40

    Re: Index match with multiple criteria

    Buongiorno
    nella cella di output

    =CERCA(2;1/((B2:B23=H2)*(C2:C23=I2)*(D2:D23>=J2-5)*(D2:D23<=J2+5));E2:E23)

    in inglese

    =LOOKUP(2,1/((B2:B23=H2)*(C2:C23=I2)*(D2:D23>=J2-5)*(D2:D23<=J2+5)),E2:E23)

  8. #8
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    Sorry, I thought you want 303 for answer.

    Attachment 599136
    -yes sir.303 is answer..i copied your formula above,but why is it not working in my sheet?but you got the answer in your picture.

  9. #9
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    Sorry, I thought you want 303 for answer.

    Attachment 599136
    Capture2.JPG please see attached file

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index match with multiple criteria

    I'm not sure.

    then, Please see attached
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    I'm not sure.

    then, Please see attached
    Still the same sir.I don't know why.please see attachedCapture3.JPG

  12. #12
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index match with multiple criteria

    I see, you don't have aggregate function, but it available from Excel 2010


    Then try this with Ctrl+Shift+Enter

    =INDEX($A$2:$A$23,MATCH(MIN(TODAY()-E2:E23*(B2:B23=H2)*(C2:C23=I2)*(ABS(D2:D23-J2)<=5)*(TODAY()-E2:E23<30)),INDEX(TODAY()-E2:E23,),))

    =INDEX($A$2:$A$23,MATCH(MIN(TODAY()-E2:E23*(B2:B23=H2)*(C2:C23=I2)*(ABS(D2:D23-J2)<=5)*(TODAY()-E2:E23<30)),TODAY()-E2:E23/(B2:B23=H2)/(C2:C23=I2)/(ABS(D2:D23-J2)<=5),))

  13. #13
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    I see, you don't have aggregate function, but it available from Excel 2010


    Then try this with Ctrl+Shift+Enter

    =INDEX($A$2:$A$23,MATCH(MIN(TODAY()-E2:E23*(B2:B23=H2)*(C2:C23=I2)*(ABS(D2:D23-J2)<=5)*(TODAY()-E2:E23<30)),INDEX(TODAY()-E2:E23,),))

    =INDEX($A$2:$A$23,MATCH(MIN(TODAY()-E2:E23*(B2:B23=H2)*(C2:C23=I2)*(ABS(D2:D23-J2)<=5)*(TODAY()-E2:E23<30)),TODAY()-E2:E23/(B2:B23=H2)/(C2:C23=I2)/(ABS(D2:D23-J2)<=5),))
    Its working sir..
    THANK YOU SO MUCH FOR THE HELP.

  14. #14
    Registered User
    Join Date
    11-22-2018
    Location
    Roma,Italia
    MS-Off Ver
    2013
    Posts
    40

    Re: Index match with multiple criteria

    Buongiorno nella mia formula non avevo messo il criterio data

    =CERCA(2;1/((B2:B23=H2)*(C2:C23=I2)*(D2:D23>=J2-5)*(D2:D23<=J2+5)*(OGGI()-E2:E23<30));E2:E23)
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by FioreMatto View Post
    Buongiorno nella mia formula non avevo messo il criterio data

    =CERCA(2;1/((B2:B23=H2)*(C2:C23=I2)*(D2:D23>=J2-5)*(D2:D23<=J2+5)*(OGGI()-E2:E23<30));E2:E23)
    Thank you so much sir for the help..I will also try

  16. #16
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    I see, you don't have aggregate function, but it available from Excel 2010


    Then try this with Ctrl+Shift+Enter

    =INDEX($A$2:$A$23,MATCH(MIN(TODAY()-E2:E23*(B2:B23=H2)*(C2:C23=I2)*(ABS(D2:D23-J2)<=5)*(TODAY()-E2:E23<30)),INDEX(TODAY()-E2:E23,),))

    =INDEX($A$2:$A$23,MATCH(MIN(TODAY()-E2:E23*(B2:B23=H2)*(C2:C23=I2)*(ABS(D2:D23-J2)<=5)*(TODAY()-E2:E23<30)),TODAY()-E2:E23/(B2:B23=H2)/(C2:C23=I2)/(ABS(D2:D23-J2)<=5),))
    Sir Good day,
    the formula above is working on first data I sent yesterday.But when I add more datas,I also edited your formula and now its not working.can you help?Please see attached file.Thank you.
    Attached Files Attached Files

  17. #17
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index match with multiple criteria

    Please try with Ctrl+Shift+Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    There's error #DIV/0! in D34, iferror added to ignore that cell
    or just delete D34

  18. #18
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    Please try with Ctrl+Shift+Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    There's error #DIV/0! in D34, iferror added to ignore that cell
    or just delete D34
    Its working Sir.Thanks much.

  19. #19
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    Please try with Ctrl+Shift+Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    There's error #DIV/0! in D34, iferror added to ignore that cell
    or just delete D34
    Hi Sir.Im enocunter problem again..It matches though not all conditions were followed.Please see attach file.
    Please help me.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    I got it sir.I added another array for another condition

  21. #21
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Index match with multiple criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

  22. #22
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index match with multiple criteria

    There are duplicate date,
    Use this With CSE

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  23. #23
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by AliGW View Post
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Okay sir..Noted.Thank you.
    Thanks much for all your help.God Bless!

  24. #24
    Registered User
    Join Date
    11-21-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    25

    Re: Index match with multiple criteria

    Quote Originally Posted by Bo_Ry View Post
    There are duplicate date,
    Use this With CSE

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I will try sir.Thank you

+ 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] Index Match with multiple criteria and date criteria
    By snolem75 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2018, 03:51 PM
  2. Replies: 16
    Last Post: 01-05-2018, 11:04 PM
  3. Index and match - multiple possible match criteria
    By JDobbsy1987 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2017, 01:52 PM
  4. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  5. Index/Match to Match entries on multiple criteria
    By manning457 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2015, 02:32 PM
  6. [SOLVED] Index Match with Multiple Criteria Using Same Criteria Column
    By rominjn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2015, 11:34 AM
  7. Replies: 2
    Last Post: 09-27-2014, 04:34 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