Sorting Grade with Salary

Salehin31

New Member
Joined
Jan 27, 2013
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
hello frndz,

First of all thanx a lot that this forum helped me on every problem I faced earlier.

Now I have a prob.
If salary is equal or less then salary colomn then grade will be on grade colomn

GradeSalary
335 15,588
336 15,625
337 15,663
338 15,700
339 15,738
340 15,775
341 15,813
342 15,850
343 15,888
344 15,925
345 15,963
346 16,000
347 16,038
348 16,075

<tbody>
</tbody>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

I hope I understand what you're after - if the salary was 15,600, you'd want to return a grade of 335. And if salary was 16,040 you'd want to return a grade of 347. Is that correct?

If the grade is in column A and salary is in column B, does the following work:

Code:
 =INDEX($A$2:$A$15,MATCH(E2,$B$2:$B$15,1))

I've noticed it causes an error if the salary is lower than the first entry, say 15,000. If that's a problem, maybe another row at the top with salary of 0 and an appropriate entry under grade.

Hope that's what you're after.

Regards,
Scott
 
Upvote 0
and if you change the columns salary = A, grade = B, you can use Vlookup to do the job for you.

Code:
I've noticed it causes an error if the salary is lower than the first entry, say 15,000. If that's a problem, maybe another row at the top with salary of 0 and an appropriate entry under grade.

This comment is the same if you use Vlookup.
 
Upvote 0
Hi,

I'm sorry, but I just realised my response wasn't complete. You would have to be a mind reader to make this work. The formula is fine, but the cell reference of E2 (after MATCH) is one that I made up. So, in cell E2 I had a salary value I want to look up:

Code:
 =INDEX($A$2:$A$15,MATCH(E2,$B$2:$B$15,1))

Just change that cell reference from E2 to whichever cell contains the salary value you wish to look up. Here's how my sample looks:

Excel 2010
ABCDEF
1GradeSalaryLookup ValueGrade
233515,58815,705338
333615,625
433715,663
533815,700
633915,738
734015,775
834115,813
934215,850
1034315,888
1134415,925
1234515,963
1334616,000
1434716,038
1534816,075

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
F2=INDEX($A$2:$A$15,MATCH(E2,B2:B15,1))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



As also mentioned, the VLOOKUP would work just fine as well if you can put the salary in the first column. With the salary you wish to lookup in cell E2 again, the VLOOKUP formula might be:

Code:
 =VLOOKUP(E2,$A$2:$A$15,2,TRUE)

Using 'TRUE' in the VLOOKUP finds an approximate match rather than an exact match.

My apologies for any confusion ... it had been a long work day yesterday when I responded :)

Hope this helps.

Regards,
Scott
 
Upvote 0
Sorry I think I cant express my word properly...

We have a grading sheet to calculate the grade basis of Salary. In our office yearly increment is implement and Salary increased. Now I have to look each employee's grade on grading sheet. I want New salary grading will automatically calculate with Grading Sheet.

Here is some figures of grading sheet
IF the new salary is equal or below 15625 then the grade will b 336
GradeSalary
335 15,588
336 15,625
337 15,663
338 15,700
339 15,738
340 15,775
341 15,813
342 15,850
343 15,888
344 15,925
345 15,963
346 16,000
347 16,038
348 16,075

<colgroup><col><col></colgroup><tbody>
</tbody>

I say i m dull in English...
 
Upvote 0
WOWWOWOWOWOWO
Its working...........
Thanx a looooooot..........
God Bless uu...on both life here & there
 
Upvote 0

Forum statistics

Threads
1,215,671
Messages
6,126,133
Members
449,294
Latest member
Jitesh_Sharma

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