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

# if statement – Excel Formula if | and

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.

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