Multiply Two Parts of the Same Number Based on Less Than/ Greater Than.

rxharp419

Board Regular
Joined
Mar 12, 2015
Messages
58
Hello,

I am trying to have a formula multiply two separate parts of a single number that is in a single cell.

i.e. I have the number 14, I want a formula to know that any number less than or equal to the number 8 is to be multiplied by the Straight time rate and any number greater than 8 will be multiplied by the Overtime rate.

I don’t want to have to put straight time in one cell and overtime in another. I would like it to be one number.

I appreciate anyone’s help in advance.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I click on that and it brings me to several post. Is there a link to a particluar post i should visit?

In I2 enter:

=IF(ISNUMBER(H2),MIN(8,H2)*50+MAX(0,H2-8)*70,"")

where H2 must house a number. If H2 does not house a number or H2 is empty, the result is a formula blank.
 
Upvote 0
In I2 enter:

=IF(ISNUMBER(H2),MIN(8,H2)*50+MAX(0,H2-8)*70,"")

where H2 must house a number. If H2 does not house a number or H2 is empty, the result is a formula blank.

Hi again,

Yes i understand that. However, I am nesting this IF into another IF as shown here:

=IF(ISBLANK(T8),"",IF(T8="Travel Rate",MIN(8,U8)*V8+MAX(0,U8-8)*W8,(V8)+(W8*U8))). I cant get it to stay blank.

How can I incorporate it into this?
 
Upvote 0
It will be "Travel Rate" or "Hrs Past 10"

Either...

=IF(T8="","",IF(T8="travel rate",MIN(8,U8)*V8+MAX(0,U8-8)*W8,IF(T8="hrs past 10",W8*(1+V8),"")))

Or, if you have the SWITCH function...

=IFERROR(SWITCH(MATCH(T8,{"travel Rate","hrs past 10"},0),1,MIN(8,U8)*V8+MAX(0,U8-8)*W8,2,W8*(1+V8)),"")<strike>
</strike>
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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