Multiple if by diferent numbers if between several ranges??

odin679

New Member
Joined
Apr 27, 2019
Messages
3
Hello,

Need help....

Collum x is 20 then 20*6.84 but if its above 20 and bellow 30 then 20*6.84+10*4.56 (this part i got it) BUT!!! If above 30 then 20*6.84+10*4.56+(whatever above 30) *1.5

Ex: 45
20*6.84+10*4.56+15*1.5

What I got so far:

=IF(G4<=20;G4*6,84;IF(G4>=30;20*6,84+(G4-20)*4,56;20*6,84+(G4-20)*4,56))
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Let me try and explain a little better.

Collum A1 is a number that if is 20 or bellow will be multiplied by 6,84.
If above 20 and bellow 30 I'll have 20 * 6,84 + X*4,56 (where X is a number bettewn 21 and 30)
If above 30 I'll have 20*6,84 + 10*4,56 + X*1.5 (where X is a number above 31)
 
Upvote 0
Ok, think I got it....

=IF(B3<=20;B3*6.84;IF(AND(B3>=21;B3<=30);20*6.84+(B3-20)*4.56;IF(B3>=31;20*6.84+10*4.56+(B3-30)*1.5)))
 
Upvote 0
Try this:

=IF(B3<21,B3*6.84,IF(B3<31,20*6.84+(B3-20)*4.56,20*6.84+10*4.56+(B3-30)*1.5))
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

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