Hiding Formula Results Until All Data is Entered.

cabbagepulley

New Member
Joined
Jan 5, 2017
Messages
15
Hi...I'm working on a spreadsheet that tracks time spent on breaks at work. I have two buttons, OUT & IN, that displays the current time in the cell next to it...in this case, OUT displays in B4 and IN displays in B5...my formula in B6 subtracts OUT from IN and displays the result in a number format. Currently, the formula in B6 is =INT((B5-B4)*1440).

However, when I enter the first item (OUT time), my total in B6 shows -6.2E+07 before the IN time is entered...once entered, it shows the correct result. I also have a sort of under/over formula in B7, which is =IF(B6<=30,30-B6,B6-30) that is showing 61554667 with only the OUT time being entered. I'd like to hide these results in B6 and B7 until the IN time in B5 is entered, after which all will calculate normally. Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Wrap the formula in an IF statement that checks to make sure that both B4 and B5 have values (and if not, return blank), i.e.
=IF(OR(B4="",B5=""),"",your formula here)
 
Upvote 0

Forum statistics

Threads
1,225,071
Messages
6,182,685
Members
453,132
Latest member
nsnodgrass73

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