Dont show #VALUE if cell in formula is empty

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,932
Office Version
  1. 2007
Platform
  1. Windows
I use the simple formula below but sometimes the cell in question doesnt yet have a value.
Because of this the cell that the formula is in shows #VALUE


Please advise how it is written so the cell shows £0.00

The formula in use is as follows.

VBA Code:
=SUM(J2-N2)
 
Hello,
You can use ISERROR Function
Also since you do a simple subtraction you do not need SUM.
Excel Formula:
=IF(ISERROR(J2-N2), 0, J2-N2)
 
Upvote 0
Solution
if its blank it should use the blank cell as zero

you could use iferror()

=IFERROR(SUM(J2-N2),"")
or
=IFERROR(SUM(J2-N2),0)

but maybe worth knowing whats in the cells to cause the issue
 
Upvote 0
Thanks i used the advice in post 4

The reason #VALUE is shown is that its on a sheet that im not currentlty working on.
Its in place for when the active sheet is full then the sheet in question will be worked on.

Thanks
 
Upvote 0

Forum statistics

Threads
1,226,771
Messages
6,192,919
Members
453,767
Latest member
922aloose

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