Get a percentage of a cell value under several conditions

sofas

Well-known Member
Joined
Sep 11, 2022
Messages
559
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hello
Find a formula to check the value of two cells in the following form

IF A1<=B1
With a value from 0 to 2000, Get 1 % of the cell value B1
In the case of 2001 to 5000, Get 2 % of the cell value B1
In the case of 5001 to 7000, Get 3 % of the cell value B1
In the case of 7001 to 10000, Get 5 % of the cell value B1
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try:

Book1 (version 1).xlsb
ABCD
15005200156
Sheet13
Cell Formulas
RangeFormula
D1D1=IF(A1<B1,B1*IFS(B1<=2000,1%,B1<=5000,2%,B1<=7000,3%,TRUE,5%),0)


Is there a chance B1 could exceed 10000? If so, it will get 5% also.
 
Upvote 0
I'm not sure if it could be made empty.​
 
Upvote 0
I don't understand your comment? Do you want the default value (if A1 > B1) to be empty? If so, try:

Excel Formula:
=IF(A1<B1,B1*IFS(B1<=2000,1%,B1<=5000,2%,B1<=7000,3%,TRUE,5%),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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