General Help

ehlfb

New Member
Joined
Aug 9, 2011
Messages
37
Dear All,

I have in Cell A2 132:23 hours, I need to calculate in Cell B2 the following:

First 60 Hours at the rate of 3
Second 60 hours at the rate of 5
anything > 120 at the rate of 9

the total should be 591.45

Can anyone help me please?.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Thanks guys,

Peter, thank you very much it works perfectly. Is it possiple to explain it to me as I cannot see the rates 3,5 and 9?
 
Upvote 0
Is it possiple to explain it to me as I cannot see the rates 3,5 and 9?
I'll try. Instead of breaking into the 3 ranges and multiplying by 3, 5 and 9 I used this logic.

Everything is multiplied by at least 3 so I multiply everything by 3.

Now everything above 60 has to be multiplied by at least 5, but it has already been multiplied by 3, so I just multiply it by another 2.

Now everything above 120 has to be multiplied by 9, but it has already been multiplied by 5 (3 and 2), so I just multiply it by another 4.

The MAX in the last two sections ensures that nothing gets subtracted if there is nothing in that range.

Does that make sense?
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,261
Members
452,901
Latest member
LisaGo

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