increase a number based on a division of cell values and not use IFS

pyclen

Board Regular
Joined
Jan 17, 2022
Messages
91
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi All,
I am trying to not use IFS for this calculation
The user will input values in Cell D4 and D5, Cell D6 performs the division D5/D4 and in D7 the cost is calculated.
Currently I am using an IFS statement that increase the cost by 1000 for every increase of 5 in D6.

My question is how can that be made neater as I do have a few more values than the one shown below?

Again, any help is highly appreciated.

=IFS(D6=0,0, D5/D4<=5,1000, D5/D4<=10, 2000, D5/D4<=15, 3000, D5/D4<=20, 4000, D5/D4<=25, 5000)

1649190571140.png
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi,

Base on your description, this should work:

Book3.xlsx
D
450
5500
610
72000
Sheet1084
Cell Formulas
RangeFormula
D6D6=IF(OR(D4="",D5=""),"",D5/D4)
D7D7=IF(D6="",0,CEILING(D6,5)/5*1000)
 
Last edited:
Upvote 0
Hi,

Base on your description, this should work:

Book3.xlsx
D
450
5500
610
72000
Sheet1084
Cell Formulas
RangeFormula
D6D6=IF(OR(D4="",D5=""),"",D5/D4)
D7D7=IF(D6="",0,CEILING(D6,5)/5*1000)
Great solution, and yes, it appears to do the trick
Highly appreciated
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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