Greater than less than formula

bvasquez551

New Member
Joined
Feb 23, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello! I am calculating hours a customer is using my facility. Billing schedule is as follows- 4 hours the rate is $1000, less than 4 hours is $300/h, 8 hours the rate is $2000. Over 8 hours it is $2000 plus $300 for every hour over. I have the formulas for all of them. I now need a formula stating-If the hours are greater than 4 but less than 8 the rate is $1000 plus $300/hour up to that 8 hours.
“Hours” begin in D2 and go to D8 if that helps.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Removed post; I mis-read some of it. Will have to review and see if I have anything to suggest.
 
Upvote 0
Maybe =If(And(hrs>4,hrs<8),1000+300*hrs) in the cell containing the calculated result, where "hrs" is the cell address where you have calculated the hours. I suspect that is not in D2 to D8, but maybe it is. Posting data is usually more help than a description. Have to say though, that I thought the more your use/buy something the better the rate you get. That doesn't seem to be the case with your pricing :unsure:
Code:
 3 hrs:           900 ($300.00/hr)
 4 hrs:          1000 ($250.00/hr)
 8 hrs:          2000 ($250.00/hr)
 9 hrs: 2000+300=2300 ($255.56/hr)
10 hrs: 2000+600=2600 ($260.00/hr)
11 hrs: 2000+900=2900 ($263.64/hr)
A potential problem with that is that there is no alternate if the IF is not true. I don't think there can be either since there are multiple equations so which one would you default to? I'd prefer a function call in the cell and let code figure it out.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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