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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

bartoni

Active Member
Joined
Jun 10, 2003
Messages
296
thanks,

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

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,169
Messages
5,640,550
Members
417,151
Latest member
ChickenTenderer

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
Top