Apply of different formulas based on different conditions

sejur2002

New Member
Joined
Nov 13, 2023
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Hello,
I'm a beginner and I don't know how to apply the following formula in the "Make" cells:
-If B4 is <50 then B5 is zero.
-If B4 is between 50 and 100 then B5 is B4*B5%*1.5%
-If B4>100 then B5 is B4*1.5%
Thank you!
 

Attachments

  • Products.jpg
    Products.jpg
    38.3 KB · Views: 3

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the Board!

I think you have a typo in the middle rule. Can you clarify?
If B4 is between 50 and 100 then B5 is B4*B5%*1.5%
(not sure what B5% is)
 
Upvote 0
If we can rule 2 "rule 2" (while waiting for you to clarify that), the structure of your formula would be:
Rich (BB code):
=IF(B4>100,B4*1.015,IF(B4>=50,Rule 2,0))
 
Upvote 0
Solution
=B4*LOOKUP(B4,{0,50,101},{0,0.015,0.015})

Replace the red bold value with what you want to multiply the middle value by.
 
Upvote 0
First of all, thank you all for the answers!
@Joe4
I made a mistake in my post, i am sorry! If B4 is between 50 and 100 then B5 is B3*B4%*1.5%, i meant the value from B4 is percent.
In B column if B4=49.9 (B4<50), then B5=B3*0.499*0.
If B4=51 then B5=B3*0.51*0.015.
If B4=101 then B5=B3*0.015
 
Upvote 0
First of all, thank you all for the answers!
@Joe4
I made a mistake in my post, i am sorry! If B4 is between 50 and 100 then B5 is B3*B4%*1.5%, i meant the value from B4 is percent.
In B column if B4=49.9 (B4<50), then B5=B3*0.499*0.
If B4=51 then B5=B3*0.51*0.015.
If B4=101 then B5=B3*0.015
You should just be able to follow the pattern I gave you and substitute the formulas where needed, i.e. put this formula in cel B5:
Excel Formula:
=IF(B4>100,B3*0.015,IF(B4>=50,B3*0.51*0.015,0))

Note that ANYTHING times zero is zero, so this is just zero:
Excel Formula:
=B3*0.499*0
 
Upvote 0

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

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