If function for #N/A

bartoni

Active Member
Joined
Jun 10, 2003
Messages
296
Hi,

Im looking to create an IF function which replaces N/A with a zero. How do i write it. The column which contains the N/A's also contains number and I need those left.

Ive tried

=IF(D1="#", d1, 0) which should leave numerical values and replace everything else with zeros but it doenst work.....


Any ideas?

Thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
thanks,

Can you tell me what the difference is between your formula and my formula in the way that Excel interprets it?
 
Upvote 0
bartoni said:
thanks,

Can you tell me what the difference is between your formula and my formula in the way that Excel interprets it?

Your formula is checking only to see if the exact cell contents of D1 are a literal pound sign.

So, that's the only thing that would show up, everything else would translate to a zero.

My formula will check to see if D1 results in the NA error, or has NA entered in the cell. If so, return zero; all other cases, including other than NA errors, are returned.
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,949
Members
448,534
Latest member
benefuexx

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