Help with formula please.

bionicle

Board Regular
Joined
Apr 23, 2009
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

Can some one provide some guidance on a formula please. I have a drop down with "group1, group2, group3" in cell J1 and based on that value I need a formula that look at a salary in column J3 that will calculate 20% of that salary, if the sum of that formula is between £4,500 and £7500 then it does nothing but if its under or over it will default to either the £4500 or the £7500. the result needs to be in cell K3

Any help would be appreciated.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
You have not explained what effect the different drop-down values have in relation to the calculation/result
 
Upvote 0
Edit , as posted saw that Peter_SSs replied
so ignore

what does the dropdown do to the formula

=IF( AND( J3*1.2>=4500,J3*1.2<=7500),"", IF(J3*1.2<4500,4500,7500))

But i dont understand the groups
 
Upvote 0
Something else that might influence the best method for you:
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Since I will be signing off for the night shortly I will take some punts that the group could affect the percentage calculation and the minimum and maximum results allowed.
Also assuming for now that Ms365 or higher is available.

22 03 03.xlsm
JKLMNOPQ
1group2Group%MinMax
2group120%4,5007,500
3330007260group222%6,00010,000
4group325%7,50012,000
Sheet2
Cell Formulas
RangeFormula
K3K3=LET(g,FILTER(O2:Q4,N2:N4=J1),MIN(MAX(INDEX(g,1)*J3,INDEX(g,2)),INDEX(g,3)))
 
Upvote 0
Something else that might influence the best method for you:
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Account details have been updated.
 
Upvote 0
You have not explained what effect the different drop-down values have in relation to the calculation/result
The three groups in the drop down are different % for different groups, thought it would be easier to ask about one formula and then adapting it to fit with the others.
 
Upvote 0
Thanks for updating your details. (y)

Then if the 4,500 and 7,500 min/max applies to all groups, try this structure

22 03 03.xlsm
JKLMNO
1group2Group%
2group120%
3330007260group222%
4group325%
Sheet2
Cell Formulas
RangeFormula
K3K3=MIN(MAX(VLOOKUP(J1,N2:O4,2,0)*J3,4500),7500)
 
Upvote 0
Worked a treat, thank you ever so much
Thanks for updating your details. (y)

Then if the 4,500 and 7,500 min/max applies to all groups, try this structure

22 03 03.xlsm
JKLMNO
1group2Group%
2group120%
3330007260group222%
4group325%
Sheet2
Cell Formulas
RangeFormula
K3K3=MIN(MAX(VLOOKUP(J1,N2:O4,2,0)*J3,4500),7500)
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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