replace #NA with zero in Index/Match formula!!

ADB_BL

New Member
Joined
Aug 25, 2011
Messages
6
hello all.
stuck with an N/A and tried multiple times to hack my way out of it.
close to head pounding on pavement stage.
somebody please help!

=INDEX('Sheet1'!$R$4:$T$13,MATCH(B12,'Sheet1'!$Q$4:$Q$13,0),MATCH(D12,'Sheet1'!$R$3:$T$3,0))
 
=INDEX(bwt!$K:$K,MATCH(1,(bwt!$B:$B=$A18)*(bwt!$E:$E=N$4),0))
This is the formula I've been using. I now have reports that may not have the N4 (which is text), the return is NA. The value in K:K is a decimal.


I need to replace the NA with 0 or blank for the 10 columns that have this formula to total. I've changed the Index match, tried so many variations, and know I'm just missing something and can't see it.

Control+shift+enter, not just enter:

Either:

=IFERROR(INDEX(bwt!$K:$K,MATCH(1,(bwt!$B:$B=$A18)*(bwt!$E:$E=N$4),0)),0)

Or:

=IFERROR(INDEX(bwt!$K:$K,MATCH(A18,IF(bwt!$E:$E=N$4,bwt!$B:$B),0)),0)

If INDEX runs into a #N/A, delivered by the MATCH bit, we get 0.

By the way, it is better to avoid referencing whole columns for reasons of efficiency.
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

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