IF Formulas

Paulcassin

New Member
Joined
Oct 25, 2018
Messages
6
How do I write the following excel formula:
If B3 < 15 then the following applies 25*2=50
AND IF B3 > 15 but < 25 then the following applies (25*3)
AND IF B3 > 25 but <50 then the following applies (25*3) + ((B3-25) *2
AND IF B3>50 but < 100 then the following applies
(25*3) + ((B3-25) *1.6
AND IF B3>100 but < 200 then the following applies (25*3) + ((B3-25) *1.4
AND IF B3>200 but < 600 then the following applies (25*3) + ((B3-25) *1.1?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
There might be a better way, but we'd need more info on the actual data

Code:
=IF(B3<15,50,IF(B3<25,75,IF(B3<50,75+(B3-25)*2,IF(B3<100,75+(B3-25)*1.6,IF(B3<200,75+(B3-25)*1.4,75+B3-25)*1.7))))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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