Need Help on Excel IFs

sanur10xc

New Member
Joined
Jun 2, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I've been stuck to find an excel formula for these particular case and do really need some help. Any help is greatly appreciated. Thank you so much :)
Basically I'm trying to make a discount plan and the case is like this.

Say Cell A1 will contain the price

<15000 = 0 discount (or A1)
15000<A1<30000 = Ceiling(A1*0.908,50)
30000<A1<33334 = 30000 (I'm trying to limit all the numbers between this to not go lower than 30,000, say for example 32,000 wont to to 29,000 due to the ceiling discount)
Rest = Ceiling(A1*0.908,50)

So basically if the A1 is lower than 15k, then A1 will be the final price, if the value will be between 15000-30000, since it won't reach the 30k anyway, I'll give the 10% discount (using the ceiling), and if it's higher than 30k, I need some formula that will keep the lowest amount for the price after discount is 30k (for example so that 32000 wont go to 29k ish). I'm having an event that is related to 30,000 as a number. I'm sorry for all the bad explanation (english is not my first language) and confusion but hopefully someone can help. Also I'm using the ceiling so that the number is neat (nothing like 29610 or something).

I tried with this but It returns 28,600 although it should be 30,000
A1=31,500
=IF(A1<=15000,A1, IF(15000<A1<30000, CEILING(A1*0.908,50), IF(30000<A1<33334, 30000, CEILING(A1*0.907,50))))


Thank you so much guys
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about
Excel Formula:
=IF(A1<=15000,A1, IF(A1<30000, CEILING(A1*0.908,50), IF(A1<33334, 30000, CEILING(A1*0.907,50))))
 
Upvote 0
Maybe this using the strict ranges? Fluff's is more compact.

Book5
AB
1price
2100000
31800016345
43500031780
53150030000
Sheet1
Cell Formulas
RangeFormula
B2:B5B2=IF(A2<15000,0,IF(AND(A2>=15000,A2<30000),CEILING(A2*0.908,5),IF(AND(A2>=30000,A2<33334),30000,CEILING(A2*0.908,5))))
 
Upvote 0
Solution
Maybe this using the strict ranges? Fluff's is more compact.

Book5
AB
1price
2100000
31800016345
43500031780
53150030000
Sheet1
Cell Formulas
RangeFormula
B2:B5B2=IF(A2<15000,0,IF(AND(A2>=15000,A2<30000),CEILING(A2*0.908,5),IF(AND(A2>=30000,A2<33334),30000,CEILING(A2*0.908,5))))
 
Upvote 0
Maybe this using the strict ranges? Fluff's is more compact.

Book5
AB
1price
2100000
31800016345
43500031780
53150030000
Sheet1
Cell Formulas
RangeFormula
B2:B5B2=IF(A2<15000,0,IF(AND(A2>=15000,A2<30000),CEILING(A2*0.908,5),IF(AND(A2>=30000,A2<33334),30000,CEILING(A2*0.908,5))))
Thanks a lot, finally got it solved. You're a hero, thank you :)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
Members
449,075
Latest member
staticfluids

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