How to limit time values outputted in certain cell

vintage36

Board Regular
Joined
Nov 29, 2011
Messages
58
A B C

1 07:09 08:30 01:21

2 06:43 08:30 01:47

3 05:29 08:30 03:01

Cols A and B above represent times entered in a spreadsheet with the interval between, e.g. A1 – B1 = C1.

However, any result in Col C must not exceed 02:00 (2 hours).

I need a formula I can apply to the whole of Col C to ensure the condition is obeyed throughout.

Please: are you able to advise?

Kindly ignore the the below attachment
 

Attachments

  • mrextab.gif
    mrextab.gif
    5.9 KB · Views: 7

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Something like this

Get Sheet Names.xlsx
ABC
17:098:3001:21
26:438:3001:47
35:298:3002:00
Sheet2
Cell Formulas
RangeFormula
C1:C3C1=MIN(120/1440,B1-A1)
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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