How do I display 0 instead of #NA after a vlookup

Amz

New Member
Joined
Sep 1, 2010
Messages
3
I have a formulae on excel using if & vlookup to find a value if a payment was taken on a certain date, the formulae is working, however I want to edit it so that instead of returning #NA if there isn't a result, it returns 0 - does anyone know how to edit it to do this? The formulae as it is currently is below:

=IF(F3=40379,VLOOKUP(A2,'Payments'!$A$2:$V$2495,7,FALSE),0)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try:

=IF(F3=40379,IF(COUNTIF('Payments'!$A$2:$A$2495,A2),VLOOKUP(A2,'Payments'!$A$2:$V$2495,7,FALSE),0),0)
 
Upvote 0
I have a formulae on excel using if & vlookup to find a value if a payment was taken on a certain date, the formulae is working, however I want to edit it so that instead of returning #NA if there isn't a result, it returns 0 - does anyone know how to edit it to do this? The formulae as it is currently is below:

=IF(F3=40379,VLOOKUP(A2,'Payments'!$A$2:$V$2495,7,FALSE),0)

Try one of...
Code:
=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,
    IF(F3=40379,VLOOKUP(A2,'Payments'!$A$2:$V$2495,7,0),0)))

Code:
=IF(F3=40379,SUMIF('Payments'!$A$2:$A$2495,A2,'Payments'!$G$2:$G$2495),0)
 
Upvote 0
I have a formulae on excel using if & vlookup to find a value if a payment was taken on a certain date, the formulae is working, however I want to edit it so that instead of returning #NA if there isn't a result, it returns 0 - does anyone know how to edit it to do this? The formulae as it is currently is below:

=IF(F3=40379,VLOOKUP(A2,'Payments'!$A$2:$V$2495,7,FALSE),0)

Me I would use

=IF(F3=40379,IF(ISNA(VLOOKUP(A2,Payments!$A$2:$V$2495,7,FALSE)),0,VLOOKUP(A2,Payments!$A$2:$V$2495,7,FALSE)))
 
Upvote 0

Forum statistics

Threads
1,213,526
Messages
6,114,136
Members
448,551
Latest member
Sienna de Souza

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