Colum A - Colum C

agoodson56

Board Regular
Joined
May 15, 2008
Messages
123
I am trying to get cell 1E to subtract 1C from 1A but if 1C is blank I would like 1E to be blank or show 0.0
 

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.
Try:

=IF(C1="",0,A1-C1)

or

=IF(C1="","",A1-C1)
 
Upvote 0
In cell E1 try:
Rich (BB code):
=IF(OR(ISBLANK(C1),C1=""),"",A1-C1
Change the "" to 0 and then change the format of the cell to show numbers with 1 decimal place - if you rather it show 0.0 instead of blank.

FYI - as a rule you refer to cells by letter first, then number. That is also how formuale reference inputs when you type them into cells
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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