=IF(I6<40,"",(SUM(I6-40))) results in #VALUE!

oomfh

Board Regular
Joined
Feb 17, 2011
Messages
141
The above works great until I delete all the data (at the end of each week) that is summed in cell I6.

How do I get a blank cell to appear instead of #VALUE!

?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
=MAX(I6-40,0)
Note - format cell as: 0;-0;

Neil, I tried your formula and it didn't work - even when the data totals > 40 it still displays #VALUE!

The formula is placed in column J. Column I simply sums the data entered into columns B through H. Objective is to calculate and display hours over 40, else display a blank (including when columns B through H are blank.)

Thx
 
Upvote 0
sum(I6-40) what does this mean ? sum(A1:A3) sums A1 A2 A3 Sum(A1:A3) -40 sums A1 A2 A3 and deducts 40
 
Upvote 0
IF I am understanding this correctly, all you have to add is

=if(I6="","",IF(I6<40,"",(SUM(I6-40))))

That way if I6 is blank it doesnt calculate.
 
Upvote 0
Hi,

It should be something like,

=IFERROR(IF(I6<40,"",(I6-40)),"")

Jai

Thank you Jai, this works perfectly. Thanks to all of the other replies as well. I probably could have done a better job of describing the application in my initial post.
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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