Adding IF to INDEX MATCH formula - results in some cells being #NA

slstewart249

New Member
Joined
Apr 14, 2018
Messages
3
I am trying to add an IF condition to an Index/Match formula.

Row 3 is a list of Dates (AZ$3)
Row 8 is a list of Dates I am trying to match Row 3 to
Row 9 is a list of $ values to return when a date in Row 3 matches a date in Row 8.

When the dates match the correct value is returned. When there is NOT a match, I get #NA . I want to get a Zero return when there is not a match.

=IF(MATCH(AZ$3,$DO$8:$DZ$8,0),INDEX($DO$8:$DZ$9,2,MATCH(AZ3,$DO$8:$DZ$8,0)),0)

How should I re-write this formula? :confused:
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
[1] If IFNA is available on your system...

=IFNA(INDEX($DO$9:$DZ$9,MATCH(AZ3,$DO$8:$DZ$8,0)),0)

[2] If IFNA is not available on your system...

=IFERROR(INDEX($DO$9:$DZ$9,MATCH(AZ3,$DO$8:$DZ$8,0)),0)
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,633
Members
452,661
Latest member
Nonhle

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