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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Roderick_E

Well-known Member
Joined
Oct 13, 2007
Messages
2,051
maybe try control+shift+enter after put in formula? (as an array)
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,653
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
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.
 

Forum statistics

Threads
1,136,340
Messages
5,675,202
Members
419,553
Latest member
hanahass

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
Top