=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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

oomfh

Board Regular
Joined
Feb 17, 2011
Messages
141
=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

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
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

njimack

Well-known Member
Joined
Jun 17, 2005
Messages
7,772
ADVERTISEMENT
Neil, I tried your formula and it didn't work - even when the data totals > 40 it still displays #VALUE!
Thx

That would only happen if I6 contains an error or text.
 
Upvote 0

montecarlo2079

Board Regular
Joined
Feb 9, 2011
Messages
207
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

oomfh

Board Regular
Joined
Feb 17, 2011
Messages
141
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,195,721
Messages
6,011,296
Members
441,600
Latest member
Ramatu

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
Top