Excel 3 If(And Comparison Result

DeltaShell

New Member
Joined
Jul 29, 2022
Messages
5
Office Version
  1. 2019
Platform
  1. Windows
I am desperate for some help with a formula to add up paid equivalent hours.
8 hours is min and least amount paid, 8-12 hours paid @ 1.5X and over 12 paid @ 2x
and I'd like it all to be in one formula.... :) Is this even doable. ??

Formula
If D26 is equal or less than 8, then 8
If D26 is greater than 8 but less than 12 then E26-D26*1.5+8
If d26 is greater than 12 then =(E26-D26)-4*2)+14


Pay Hours.JPG
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the MrExcel forum!

Try:

Book1
BCDEFG
25StartFinishTotal Hrs WorkedOT HoursEquivalent hours
266.512.45.908
275.515.810.32.311.45
284.517.813.35.316.6
299.320.611.33.312.95
3072114618
318.519.511312.5
322.512.710.22.211.3
Sheet2
Cell Formulas
RangeFormula
D26:D32D26=C26-B26
E26:E32E26=MAX(0,D26-8)
G26:G32G26=IF(D26<=8,8,IF(D26<=12,D26*1.5-4,D26*2-10))


I used some algebra to shorten your formulas a bit, so check them out, but I think they work according to your description.
 
Upvote 0
Solution
Welcome to the MrExcel forum!

Try:

Book1
BCDEFG
25StartFinishTotal Hrs WorkedOT HoursEquivalent hours
266.512.45.908
275.515.810.32.311.45
284.517.813.35.316.6
299.320.611.33.312.95
3072114618
318.519.511312.5
322.512.710.22.211.3
Sheet2
Cell Formulas
RangeFormula
D26:D32D26=C26-B26
E26:E32E26=MAX(0,D26-8)
G26:G32G26=IF(D26<=8,8,IF(D26<=12,D26*1.5-4,D26*2-10))


I used some algebra to shorten your formulas a bit, so check them out, but I think they work according to your description.
 
Upvote 0
WOW, Thanks so much for the speedy response. So much shorter. !!
Brilliant!
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,783
Members
449,049
Latest member
greyangel23

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