if... then....

Salehin31

New Member
Joined
Jan 27, 2013
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
Hi dear,
This is Salehin from chattagram, Bangladesh. Every time when I face any problem in Excel, firstly in my mind come this forum. This time also....
In my office management give me new Salary increment sheet. Where they (management) divide 2 parts 1. Admin 2. Production. with salary range.

Suppose if any staffs Salary 41000 in admin section and he get A his increment will be 2300

here I give the Salary range chart and main increment sheet also.


Admin
SLRangeA+AA-BC
1​
10000-15000
2000​
1750​
1500​
1250​
250​
2​
15001-20000
2250​
1925​
1750​
1400​
300​
3​
20001-25000
2500​
2250​
1800​
1125​
450​
4​
25001-30000
2700​
2500​
2000​
1200​
500​
5​
30001-35000
2400​
2200​
2000​
1250​
500​
6​
35001-40000
2300​
2100​
1800​
1200​
500​
7​
40001-50000
2500​
2300​
2000​
1500​
500​
8​
50001-60000
2950​
2500​
2200​
1500​
500​
Production
SLRangeA+AA-BC
1​
10000-15000
3500​
3250​
2500​
1300​
250​
2​
15001-20000
3500​
3150​
2400​
1200​
350​
3​
20001-25000
2925​
2475​
1800​
1100​
450​
4​
25001-30000
2700​
2500​
2000​
1200​
500​
5​
30001-35000
2400​
2200​
2000​
1250​
500​
6​
35001-40000
2300​
2100​
1800​
1200​
500​
7​
40001-50000
2500​
2300​
2000​
1500​
500​
8​
50001-60000
2950​
2300​
2200​
1500​
500​



Main Increment sheet
DesignationSectionGradingPresent Salary(Gross)New Increment
GMAdminA+157438
Sr.Officer(Accounts)AdminA26638
Executive (Accounts)AdminA-22700
Manager Com & HRDAdminB44638
Deputy Manager (HR & Com.)AdminC33988
WELFARE OFFICERAdminA+20038
Welfare OfficerAdminA13663
Deputy Manager (Cutting)ProductionC35788
Asst.Manager(Cutting)ProductionA+34850
In-Charge (Cutting)ProductionA24650
Executive (Cutting)ProductionA-16038
Jr.ExecutiveProductionB15363
ExecutiveProductionC13888

I hope it will be solved.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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’)

First thing I would do is to split the salary ranges into two columns like this.

22 01 22.xlsm
ABCDEFGH
1Admin
2SLRange StartRange EndA+AA-BC
3110000150002000175015001250250
4215001200002250192517501400300
5320001250002500225018001125450
6425001300002700250020001200500
7530001350002400220020001250500
8635001400002300210018001200500
9740001500002500230020001500500
10850001600002950250022001500500
11Production
12SLRange StartRange EndA+AA-BC
13110000150003500325025001300250
14215001200003500315024001200350
15320001250002925247518001100450
16425001300002700250020001200500
17530001350002400220020001250500
18635001400002300210018001200500
19740001500002500230020001500500
20850001600002950230022001500500
Salary


The following formulas are based on the fact that the salary ranges and letter grades are identical in each section. If that changes then the formulas will need updating.

22 01 22.xlsm
ABCDE
1DesignationSectionGradingPresent Salary(Gross)New Increment
2GMAdminA+1574382950
3Sr.Officer(Accounts)AdminA266382500
4Executive (Accounts)AdminA-227001800
5Manager Com & HRDAdminB446381500
6Deputy Manager (HR & Com.)AdminC33988500
7WELFARE OFFICERAdminA+200382500
8Welfare OfficerAdminA136631750
9Deputy Manager (Cutting)ProductionC35788500
10Asst.Manager(Cutting)ProductionA+348502400
11In-Charge (Cutting)ProductionA246502475
12Executive (Cutting)ProductionA-160382400
13Jr.ExecutiveProductionB153631200
14ExecutiveProductionC13888250
Increment
Cell Formulas
RangeFormula
E2:E14E2=INDEX(IF(B2="Admin",Salary!$D$3:$H$10,Salary!$D$13:$H$20),MATCH(D2,Salary!B$3:B$10,1),MATCH(C2,Salary!D$2:H$2,0))
 
Upvote 0
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’)

First thing I would do is to split the salary ranges into two columns like this.

22 01 22.xlsm
ABCDEFGH
1Admin
2SLRange StartRange EndA+AA-BC
3110000150002000175015001250250
4215001200002250192517501400300
5320001250002500225018001125450
6425001300002700250020001200500
7530001350002400220020001250500
8635001400002300210018001200500
9740001500002500230020001500500
10850001600002950250022001500500
11Production
12SLRange StartRange EndA+AA-BC
13110000150003500325025001300250
14215001200003500315024001200350
15320001250002925247518001100450
16425001300002700250020001200500
17530001350002400220020001250500
18635001400002300210018001200500
19740001500002500230020001500500
20850001600002950230022001500500
Salary


The following formulas are based on the fact that the salary ranges and letter grades are identical in each section. If that changes then the formulas will need updating.

22 01 22.xlsm
ABCDE
1DesignationSectionGradingPresent Salary(Gross)New Increment
2GMAdminA+1574382950
3Sr.Officer(Accounts)AdminA266382500
4Executive (Accounts)AdminA-227001800
5Manager Com & HRDAdminB446381500
6Deputy Manager (HR & Com.)AdminC33988500
7WELFARE OFFICERAdminA+200382500
8Welfare OfficerAdminA136631750
9Deputy Manager (Cutting)ProductionC35788500
10Asst.Manager(Cutting)ProductionA+348502400
11In-Charge (Cutting)ProductionA246502475
12Executive (Cutting)ProductionA-160382400
13Jr.ExecutiveProductionB153631200
14ExecutiveProductionC13888250
Increment
Cell Formulas
RangeFormula
E2:E14E2=INDEX(IF(B2="Admin",Salary!$D$3:$H$10,Salary!$D$13:$H$20),MATCH(D2,Salary!B$3:B$10,1),MATCH(C2,Salary!D$2:H$2,0))
Thank's a lot sir...
But I am confused that should I create a new sheet named salary because I see in your formula which I bold
=INDEX(IF(B2="Admin",Salary!$D$3:$H$10,Salary!$D$13:$H$20),MATCH(D2,Salary!B$3:B$10,1),MATCH(C2,Salary!D$2:H$2,0))
 
Upvote 0
You do not have to create a new sheet. However, you did not tell us the actual name of the sheet that the first table in your post is on. Instead you said "In my office management give me new Salary increment sheet." so I just called my sheet Salary. Change that to whatever the name of your sheet is. If the sheet name contains any space characters then you need single quote marks around the sheet name. For example, if the sheet name was 'Increment Data' then my formula would be

=INDEX(IF(B2="Admin",'Increment Data'!$D$3:$H$10,'Increment Data'!$D$13:$H$20),MATCH(D2,'Increment Data'!B$3:B$10,1),MATCH(C2,'Increment Data'!D$2:H$2,0))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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