Time Range

mark_hassall

New Member
Joined
May 21, 2018
Messages
1
Hi,

This is two questions in one, but they're linked:
I want to record a time duration in MM:SS into a cell. I've set the format using "custom" and "MM:SS", but to get it to display properly I have to enter zero values for the hour, e.g. 00:10:32 to display 10:32. Is there a way to avoid having to enter the zeros?

Secondly, the target duration is 10 minutes. I then want a second cell to display a penalty score if the time is more or less than 10 minutes using the following rule:
10 point penalty for each whole minute the time is over 10 minutes up to a maximum of 40 penalty points.
10 point penalty for each whole minute the time under 10 minutes up to a maximum of 20 penalty points.

I've been trying to write an "if" statement for this, but haven't succeeded yet, does anyone have any suggestions?

Thanks
Mark
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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