Need help with IF statement

AlanWade

Board Regular
Joined
Oct 12, 2010
Messages
62
Hi,
I have in cell A1 start time e.g. 00:00
In cell B1 I have finish time e.g. 08:00
Now in cell C1 is lunch break which is always 30 mins (formatted as 00:30).
Is there an IF statement to hide the contents of C1 (00:30) unless there is a time entered in A1 and B1?

What I am trying to say is to only show the lunch break if I have entered a start and finish time.

Thanks for any help

Alan
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Spoke too soon!

What I hadnt noticed is that the cell displays correctly 00:30 for a thirty minute break but in a different cell I have this formula which works out the extra payment for nights: =IF(COUNT(C12:D12)=2;MOD(0,25-C12;1)-SUM(E12);"").
The extra payment stops at 6am, and I dont receive it during the break. But the formula now dosnt recognise my break anymore. Is there a way to make it recognise the cell that displays my break again?
This is the formula (as above) =IF(AND(C13<>""; D13<>""); TEXT(1/48; "tt:mm"); "") that enters the 30 minute break.

Thanks

Alan
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

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