=if formula showing #VALUE! as '0'

ronie85

Board Regular
Joined
Jan 25, 2014
Messages
89
Office Version
  1. 365
Platform
  1. Windows
I have created a formula to look at cell f9 and depending on its value, I want to give it my own value. If its above 0 then it should always return with a '3'. If its under 0 then it should always return with a '0'. If the value is exactly 0 then it will return with a '1'. The issue I am having is that not all cells in row 9 have values. Therefore the formula returns a value of #value! where I also need this to return as a '0'. Here is the formula that works, I just need help with the final bit to change #value! to a '0'. My formula is =if(f9>0,"3",if(f9<0,"0",if(f9,0,"1")))
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi

The issue I am having is that not all cells in row 9 have values. Therefore the formula returns a value of #value!

Sorry, this makes no sense to me. It doesn't matter if the cell in F9 has a value or not, you are just making comparisons and so the formula should never return an error value.


Remark: I'm assuming, of course, that the value in F9 is not itself an error value
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,689
Members
449,117
Latest member
Aaagu

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