Min Time

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
378
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hi have this formula =(G6*24)*$A$43 it refers to a start time and a finish time ie: 07:00 and 13:00 then it multipies it by A43 the amount per hour.
I want it to round to 8 hours pay as a minimum so if someone worked 8.45 or less it would be 8:00

Any help with this

many thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Is this what you mean?

ABCDEFGHI
1
2Pay per hr$12.00
3Min Hrs8
4
5StartFinishHoursPay
67:0011:004:00$96.00
712:3021:309:00$108.00
8
Sheet1
Cell Formulas
RangeFormula
G6:G7G6=F6-E6
I6:I7I6=MAX(MinHrs,G6*24)*PayPerHr
Named Ranges
NameRefers ToCells
MinHrs=Sheet1!$E$3I6:I7
PayPerHr=Sheet1!$E$2I6:I7
 
Upvote 0
Is this what you mean?

ABCDEFGHI
1
2Pay per hr$12.00
3Min Hrs8
4
5StartFinishHoursPay
67:0011:004:00$96.00
712:3021:309:00$108.00
8
Sheet1
Cell Formulas
RangeFormula
G6:G7G6=F6-E6
I6:I7I6=MAX(MinHrs,G6*24)*PayPerHr
Named Ranges
NameRefers ToCells
MinHrs=Sheet1!$E$3I6:I7
PayPerHr=Sheet1!$E$2I6:I7
Nearly if the days worked have times in them it works a treat,
But if the day is a non worked day then the cells have 00:00 and 00:00 in them and this returns a min 8 hrs pays as well
 
Upvote 0
Try I6: =(G6>0)*MAX(MinHrs,G6*24)*PayPerHr

Or perhaps better still: =IF(G6=0,"nil",MAX(MinHrs,G6*24)*PayPerHr)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,603
Messages
6,125,782
Members
449,259
Latest member
rehanahmadawan

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