Get a percentage of a cell value under several conditions

sofas

Active Member
Joined
Sep 11, 2022
Messages
469
Office Version
  1. 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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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 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,215,212
Messages
6,123,649
Members
449,111
Latest member
ghennedy

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