Match or nested if or vlookup?

PKBrahma

New Member
Joined
Nov 26, 2017
Messages
28
Sir,
I have my present salary in Col-B and new (fitment range) salary in Col-C. If Col-B matches with any one of the fitment range cells of Col-C, new salary will be the present salary. Else, my new salary will be fit in the next higher cell of the fitment range. I want to show my new Salary in Co-D. How can I do? Should I use nestedif or vlookup or match? Please guide me with code. Thanks & regards.

ABCD
Names
SalaryFitment RangeNew Salary
AAA7897669700
BBB8262671800
CCC8311474000
DDD8475976200
EEE8496478500
FFF8678980900
GGG8678983300
HHH8678985800
III8686688400
JJJ8840091100
93800
96600

<colgroup><col style="width:48pt" width="64" span="2"> <col style="mso-width-source:userset;mso-width-alt:2486;width:51pt" width="68"> <col style="mso-width-source:userset;mso-width-alt:2816;width:58pt" width="77"> </colgroup><tbody>
</tbody>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
can you provide an illustration example for the data you gave above? It will help us to understand it better.
 
Upvote 0
Sir,
The present salary will be fit in a new salary range which is given in col-c. If present salary is 78976, that will be fit in 80900. if present salary is 82626, that will be fit in 83300. if present salary is 84964, that will be fit in 85800. But, if the present salary is 88400, then the new salary will be 88400. What function will I use to get the new salary of the staff(names in Col-A) in Col-D? Thanks.
 
Upvote 0
Sir,
I have given illustration about what I want. Please advise me what to do. The value of a cell in col-B should be the next value in the cell of col-D. But, if the value of a cell in Col-B matches the value of a cell in col-D, then that value should not change to next value. Please advise me. Thank you.
 
Upvote 0
Is this what you are looking for?


Unknown
ABCD
1NamesSalaryFitment RangeNew Salary
2AAA789766970080900
3BBB826267180083300
4CCC831147400083300
5DDD847597620085800
6EEE849647850085800
7FFF867898090088400
8GGG867898330088400
9HHH867898580088400
10III868668840088400
11JJJ884009110088400
1293800
1396600
Sheet16
Cell Formulas
RangeFormula
D2=INDEX($C$2:$C$13,IFNA(MATCH(B2,$C$2:$C$13,0),MATCH(B2,$C$2:$C$13,1)+1))
 
Last edited:
Upvote 0
Sirs,
Both the posts are very helpful. I owe my thanks and regards to both. I am successful. Let this post be closed.
 
Upvote 0
Sir,
Even if the value of a cell in Col-B matches the value of a cell in col-D, then also the value should change to next value. In that case, what to change and where? Please advise. Thanks.
 
Upvote 0
Sir,
Even if the value of a cell in Col-B matches the value of a cell in col-D, then also the value should change to next value. In that case, what to change and where? Please advise. Thanks.


In D2 enter and copy down:

=IF(B2="","",INDEX($C$2:$C$13,MATCH(B2,$C$2:$C$13,1)+(LOOKUP(B2,$C$2:$C$13) <= B2)))
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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