Index / match - 2 match criteria

dunmore83

Well-known Member
Joined
Aug 24, 2011
Messages
540
Hi,

I have the following formula which is returning a #REF! error;

=INDEX('Paddock-Plan-Crops'!$V$17:$V$67,MATCH(S$7,'Paddock-Plan-Crops'!$G$17:$G$67,0),MATCH(S$4,'Paddock-Plan-Crops'!$Y$17:$Y$67,0))

Basically I need the formula to return the value from column V only when both of the Match criteria's are found.

Any helpers on how to fix this one ??

Thanks
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try

Array formula
=INDEX('Paddock-Plan-Crops'!$V$17:$V$67,MATCH(1, IF('Paddock-Plan-Crops'!$G$17:$G$67=S$7,IF('Paddock-Plan-Crops'!$Y$17:$Y$67=S$4,1)),0))
Ctrl+Shift+Enter

M.
 
Upvote 0
Actually I need another modification to that formula!!

Can you help ??

The Match searches can have duplicate results i.e. S7 = "Pivot 2" S4 = "Silage"

"Pivot 2" can occur twice in G17:G67 & "Silage" can occur twice in Y17:Y67 - when it does I need the formula to return the Sum of both numerical values found in Column V17:V67

Currently it is only returning the sum of the 1st match.

Any ideas ??
 
Upvote 0
I have to leave now, so i'll say just the idea (UNTESTED)
Try INDEX(V:V, SMALL(If(condition1,IF(conditon2,ROW(V$17:V$67))),ROWS(A$2:A2)))

Something like (not sure about the parentheses)

Array formula in A2 copied dow (assuming the first cell you put the formula is A2 - adjust)
=IFERROR(INDEX('Paddock-Plan-Crops'!$V:$V,SMALL(IF('Paddock-Plan-Crops'!$G$17:$G$67=S$7,IF('Paddock-Plan-Crops'!$Y$17:$Y$67=S$4,ROW('Paddock-Plan-Crops'!$V$17:$V$67))),ROWS(A$2:A2))),"")
Ctrl+Shift+Enter

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,438
Members
449,083
Latest member
Ava19

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