# Help showing #N/A as a 0

#### HughBuchan

##### New Member
Looking for a little help...

I am using a vlookup to pull data into a spreadsheet that summarizes information about marketing campaigns. Currently if the vlookup does not find data on a specific lookup it returns a #N/A.

I have a row that totals up all the results of each campaign, but if one of the results that is incorportated in the total is a #N/A then the total shows up as a #N/A. To avoid this I have been going in and typing in a 0, but I'm trying to make these spreadsheets to be as automated as possible, and have lookup return a zero if it does not find data.

Is there a way to do this?

Thanks,

-hugh

### Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Incorporate your vlookup in an IF() statement

e.g =If(ISNA(vlookup()),0,vlookup())

replacing the Vlookup() with your actual Vlookup formula.

Looking for a little help...

I am using a vlookup to pull data into a spreadsheet that summarizes information about marketing campaigns. Currently if the vlookup does not find data on a specific lookup it returns a #N/A.

I have a row that totals up all the results of each campaign, but if one of the results that is incorportated in the total is a #N/A then the total shows up as a #N/A. To avoid this I have been going in and typing in a 0, but I'm trying to make these spreadsheets to be as automated as possible, and have lookup return a zero if it does not find data.

Is there a way to do this?

Thanks,

-hugh

You can keep #N/A's as is and invoke:

=SUM(SUMIF(Range,{"<0",">0"}))

to sum the range that includes #N/A's.

An expansion on the "ISNA" response would be

If(ISERROR(vlookup()),0,vlookup())

where the "vlookup()" can be repalced with an equation or any other function and the 0 can be replaced with a flag or instruction, as the situation requires.

Replies
5
Views
197
Replies
5
Views
431
Replies
9
Views
568
Replies
6
Views
2K
Replies
8
Views
415

1,217,500
Messages
6,137,008
Members
450,038
Latest member

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

### Which adblocker are you using?

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

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