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: 5

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,066
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,350
Messages
5,601,122
Members
414,429
Latest member
Bilaal xaka

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