# Replacing #NA with 0

#### lsblondie

##### New Member
I'm using the following formula and would love to be able to have zero returned instead of #NA. Could you recommend a solution?

=VLOOKUP(A207,'STD Sales dump'!\$A\$7:\$X\$3600,18,FALSE)

Thanks

### Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

#### VoG

##### Legend
Try

=IF(ISNA(VLOOKUP(A207,'STD Sales dump'!\$A\$7:\$X\$3600,18,FALSE)),0,VLOOKUP(A207,'STD Sales dump'!\$A\$7:\$X\$3600,18,FALSE))

#### T. Valko

##### Well-known Member
I'm using the following formula and would love to be able to have zero returned instead of #NA. Could you recommend a solution?

=VLOOKUP(A207,'STD Sales dump'!\$A\$7:\$X\$3600,18,FALSE)

Thanks
What version of Excel are you using?

I'm using 2003

#### VoG

##### Legend
ADVERTISEMENT
Then you'll need the formula that I posted.

#### T. Valko

##### Well-known Member
I'm using 2003
Here's another possibility:

=IF(COUNTIF('STD Sales dump'!\$A\$7:\$A\$3600,A207),VLOOKUP(A207,'STD Sales dump'!\$A\$7:\$X\$3600,18,0),0)

#### lsblondie

##### New Member
Works like a charm...thanks!

Replies
11
Views
407
Replies
3
Views
494
Replies
23
Views
859
Replies
5
Views
265
Replies
0
Views
332

Threads
1,195,748
Messages
6,011,421
Members
441,614
Latest member
TiaGtz

### 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

### 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