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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,223,734
Messages
6,174,189
Members
452,550
Latest member
southernsquid2

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