Match and index formula

pkam2010

New Member
Joined
Mar 29, 2019
Messages
19
HI

i have a formula of

={IFERROR(INDEX(sheet2!$A$2:$H$500,MATCH(2,(sheet2!$G$2:$G$500=sheet1!$B$3)*(sheet2!$H$2:$H$500=sheet1!$AB$2),0),4)," ")}

A3 is the date
B3 is the name

so it is matching the date and name of a person and returning the data. want it to match that and then look at the row below

can someone help
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Re: Help match and index formula

Isn't this just

={IFERROR(INDEX(sheet2!$A$2:$H$500,MATCH(2,(sheet2!$G$2:$G$500=sheet1!$B$3)*(sheet2!$H$2:$H$500=sheet1!$AB$2),0)+1,4)," ")}
 
Upvote 0
Re: Help match and index formula

This:

(sheet2!$G$2:$G$500=sheet1!$B$3)*(sheet2!$H$2:$H$500=sheet1!$AB$2)

can never produce 2 so the MATCH will always fail. It can only produce array of 0s and 1s.
 
Upvote 0
Re: Help match and index formula

Try

={IFERROR(INDEX(sheet2!$A$2:$H$500,MATCH(1,(sheet2!$G$2:$G$500=sheet1!$B$3)*(sheet2!$H$2:$H$500=sheet1!$AB$2),0)+1,4)," ")}
Array formula, use Ctrl-Shift-Enter
 
Last edited:
Upvote 0
Re: Help match and index formula

Hi

i need to expend the search to find also whats in cell b7 and look what is sheet2 but only contain the first for numbers. is this possible
 
Upvote 0

Forum statistics

Threads
1,224,745
Messages
6,180,699
Members
452,994
Latest member
Janick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top