If-and-index-match

jmegarner

New Member
Joined
Jun 4, 2018
Messages
3
I am using the following formula and attempting to have APPROVED or BR entered into a cell.

=IF(AND(INDEX('Raw Data'!D:D, MATCH(Template!A2&"ATP-F",'Raw Data'!A:A&'Raw Data'!E:E, 0) =100%), (INDEX('Raw Data'!D:D, MATCH(Template!A2&"BR", 'Raw Data'!A:A&'Raw Data'!E:E,0) =100%))), "BR", "Approved")

I want the sheet to look at column A and E of the Raw Data tab and if a row has both the value of A2 and "ATP-F" (column E), I would like it then to check column D for % value and then I need the sheet to check the same columns but this time looking for "BR" in column E and if both return 100% value from Column D enter "BR" otherwise "Approved"
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Wrong parentheses..

Try
=IF(AND(INDEX('Raw Data'!D$2:D$100, MATCH(Template!A2&"ATP-F",'Raw Data'!A$2:A$100&'Raw Data'!E$2:E$100, 0)) =100%,INDEX('Raw Data'!D$2:D$100, MATCH(Template!A2&"BR", 'Raw Data'!A$2:A$100&'Raw Data'!E$2:E$100,0)) =100%), "BR", "Approved")

Note: For the sake of performance avoid references to entire columns, like A:A, D:D or E:E, in array formulas. Use definite ranges like A$2:A$100 etc (adjust to suit)

M.
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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