matching 3 criterias to return a sum

stephen4321

New Member
Joined
Oct 21, 2014
Messages
3
Hi,

I'm really struggling to match 3 criterias and return the cell data in B4:G6. It seems to work when I'm not search more than one cell but as soon as I want to search a criteria over several cells i.e. B2:G2=A3 it returns N/A but if the serach is simply B2=A3 then it returns?

=INDEX(Sheet1!B4:G6,MATCH(1,IF(Sheet1!B2:G2=A3,IF(Sheet1!B3:G3=A4,IF(Sheet1!A4:A6=A6,1))),0))

I've arrayed the formula but still struggling, hopefully someone can help??
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi,

I have a sample excel sheet but can't upload it, basically I have 3 criteria:

=INDEX(Sheet1!B4:G6,MATCH(1,IF(Sheet1!B2:G2=A3,IF(Sheet1!B3:G3=A4,IF(Sheet1!A4:A6=A6,1))),0))

A3 - Location
A4 - Total Cost
A6 - Manager


I am trying to return the Manager cost from a data table on Sheet 1 B4:G6.

Hope that helps.
 
Upvote 0
Can use below formula after some modification.

=INDEX(Sheet1!B4:G6,MATCH(1,(Sheet1!B2:G2=A3)*(Sheet1!B3:G3=A4)*(Sheet1!A4:A6=A6),1),2)

Regards,
Amitkumar J.
 
Upvote 0
Hi,

I have a sample excel sheet but can't upload it, basically I have 3 criteria:

=INDEX(Sheet1!B4:G6,MATCH(1,IF(Sheet1!B2:G2=A3,IF(Sheet1!B3:G3=A4,IF(Sheet1!A4:A6=A6,1))),0))

A3 - Location
A4 - Total Cost
A6 - Manager


I am trying to return the Manager cost from a data table on Sheet 1 B4:G6.

Hope that helps.

Are we retrieving a fgure or summing?

In which ranges do we have locations, mangers, and total cost values?
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,825
Members
449,470
Latest member
Subhash Chand

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