Home » excel » if statement – Excel Formula if | and

if statement – Excel Formula if | and

Posted by: admin May 14, 2020 Leave a comment

Questions:

I need some help with an Excel formula

╔═══════════════╦═════════╗
║   SALE PRICE  ║  Bonus  ║
╠═══════╦═══════╬═════════╣
║   0   ║ 14999 ║  $25.00 ║
╠═══════╬═══════╬═════════╣
║ 15000 ║ 20000 ║  $50.00 ║
╠═══════╬═══════╬═════════╣
║ 20001 ║ 25000 ║ $125.00 ║
╠═══════╩═══════╬═════════╣
║     25001+    ║ $250.00 ║
╚═══════════════╩═════════╝

The above table is the data I need to extract when the sale price is entered into a field.

For example…..

Cell D24 is the BONUS FIELD
Cell E29 is the SALE PRICE FIELD

If the sale price is between $0-$14,999, then I want cell D24 to auto-populate $25.00. Then, if the sale price is between $15,000-$20,000 I want Cell D24 to auto-populate $50. Then, if the sale price is between $20,001-$25,000 I want Cell D24 to auto-populate $125. Then finally, if the sale price is $25,001+ I want Cell D24 to auto-populate $250.

How to&Answers:

try,

=25+(A2>15000)*25+(A2>20000)*75+(A2>25000)*125

Answer:

this formula seems to work but only the first rule being 0-14999…..how do I add another rule to the existing formula.

=IF(AND(E29>=0,E29<=14999),25,0)