If Error

jontyoc

Board Regular
Joined
Sep 3, 2012
Messages
52
I am wanting to use the formula If(A1="","",A1-B1) in column C. I am using Excel 2007.

The values are formatted as [h]:mm:ss, and everything works fine if its false.
The sum works, however if the cell is blank I get #VALUE error.
I have tried taking off the formatting but no difference.

I have used this on other spreadsheets with no bother and its getting me slightly perplexed.
Have tried the opposite formula too - IF(A1<>"",A1-B1,"")

Any help greatly appreciated.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Is the cell empty or have text or " " space?
If one of the above you will get this error.
Same if A1= Text
Text- number =Error

Try this:
=IF(ISTEXT(A1),"",A1-B1)
 
Upvote 0
All fixed now. Ive gone back and started from scratch.
Now working with =IF(ISTEXT(A1),"",A1-B1)

Thanks Robert and BeingYogi for help
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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