Look up cell in a vlook up then retrieve cell next to it

jesusespinoza1

New Member
Joined
Jun 24, 2015
Messages
12
A
B
C
D
E
F
G
1
JOB
Operator 1
2
Current rate
$10.00
3
Next Rate
4
Max
Rate 1
5
Operator 1
12.00
9.00
9.75
10.50
12.00
6
Operator 2
15.00
10.00
12.00
14.00
15.00
7
Operator 3
13.00
8.50
10.25
12.00
13.00
8
9

<tbody>
</tbody>


I have a compensation spreadsheet that has current wages and the salary structure for the upcoming year. I need to create a formula that will look up the job title and give me the next rate of pay based on the current pay. Lets say EE #1 is a Operator 1 making $10.00 per hour now. I want the formula to look up the pay range for Operator #1 and locate the next pay rate above $10.00. If the current rate is above the max rate then return the max rate
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Re: Look up cell in a vlook up then retrieve cell next to it-- Please help

Excel Workbook
ABCDEF
1JOBOperator 1
2Current rate$10.00
3Next Rate10.5
4MaxRate 1
5Operator 11299.7510.512
6Operator 21510121415
7Operator 3138.510.251213
Sheet9
 
Upvote 0
Re: Look up cell in a vlook up then retrieve cell next to it-- Please help

The formula kind of works.
Issues:

  1. The formula works as written but I have to makesure the last MATCH references the correct row: for example as its writtenMATCH(B2, C5:F5,1)+1)). It works in the original example because Operator 1 wasthe first pay range. But in my actualspreadsheet there are 32 jobs and the job I am looking for is not always in thefirst row.



    I basically need to enter a formula into Column E that willlook at the Job Title and Current Pay Rate and look that up on the wagestructure (2nd pasted picture below) and tell me what is the next Rate that person is due. Once I enterthat formula I can then drag the formula through column E to all 200+ employees
ABCDEF
1EE NameJob TitleCurrent RateNext Rate
2John Slitter Operator$15.50
3MichaelSlitter Operator$16.50
4PattyMechanic$18.00
5MaryJanitor$11.50
6SeanMechanic$19.00
7StevenJanitor$10.00
8JoePlanner$19.75

<tbody>
</tbody>
 
Last edited by a moderator:
Upvote 0
Re: Look up cell in a vlook up then retrieve cell next to it-- Please help

In B3 control+shift+enter, not just enter:

=IF(INDEX($B$5:$B$7,MATCH(B1,$A$5:$A$7,0))=B2,B2,MIN(IF($A$5:$A$7=B1,IF($C$5:$F$7>B2,$C$5:$F$7))))
 
Upvote 0
Return cell next to a particular cell (IF, Match, Index)

A
B
C
D
E
F
1
EE Name
Job Title
Current Rate
Next Rate
2
John
Slitter Operator
$15.50
3
Michael
Slitter Operator
$16.50
4
Patty
Mechanic
$18.00
5
Mary
Janitor
$11.50
6
Sean
Mechanic
$19.00
7
Steven
Janitor
$10.00
8
Joe
Planner
$19.75

<tbody>
</tbody>

I basically need to enter a formula into Column E that willlook at the Job Title and Current Pay Rate and look that up on the wagestructure and tell me what is the next Rate that person is due. Once I enterthat formula I can then drag the formula through column E to all 200+ employees
1 A

B

C

D

E

F

E

F g

I

J

K

L

2

Job Title

Empty 1

Range Max

0

0.5

1

1.5

2

3

4

5

6

3
Utility

$22.90

$18.47

$19.36

$20.24

$21.13

$22.02

$22.90

$22.90

$22.90

$22.90

4
Planner

$22.85

$18.43

$19.31

$20.19

$21.08

$21.96

$22.85

$22.85

$22.85

$22.85

5
Plate Maker

$23.12

$18.64

$19.54

$20.43

$21.33

$22.22

$23.12

$23.12

$23.12

$23.12

6
Slitter Operator

$17.00

$12.00

$13.00

$14.00

$15.00

$16.50

$17.00

$17.00

$17.00

$17.00

7
Mechanic

$22.73

$18.33

$19.21

$20.09

$20.97

$21.85

$22.73

$22.73

$22.73

$22.73

8
Machine Operator

$22.28

$17.97

$18.83

$19.69

$20.55

$21.42

$22.28

$22.28

$22.28

$22.28

9
Janitor

$15.00

$11.00

$12.00

$13.00

$13.50

$14.50

$15.00

$15.00

$15.00

$15.00

10

<tbody>
</tbody>
 
Upvote 0
Re: Return cell next to a particular cell (IF, Match, Index)

Try:

ABCDEFGHIJKLMNOPQRSTUV
11EE NameJob TitleCurrent Rate Next Rate Job TitleEmpty 1Range Max00.511.523456
22JohnSlitter Operator$15.50 $16.50 Utility$22.90 $0.00 $18.47 $19.36 $20.24 $21.13 $22.02 $22.90 $22.90 $22.90 $22.90
33MichaelSlitter Operator$16.50 $17.00 Planner$22.85 $0.00 $18.43 $19.31 $20.19 $21.08 $21.96 $22.85 $22.85 $22.85 $22.85
44PattyMechanic$18.00 $18.33 Plate Maker$23.12 $0.00 $18.64 $19.54 $20.43 $21.33 $22.22 $23.12 $23.12 $23.12 $23.12
55MaryJanitor$11.50 $12.00 Slitter Operator$17.00 $0.00 $12.00 $13.00 $14.00 $15.00 $16.50 $17.00 $17.00 $17.00 $17.00
66SeanMechanic$19.00 $19.21 Mechanic$22.73 $0.00 $18.33 $19.21 $20.09 $20.97 $21.85 $22.73 $22.73 $22.73 $22.73
77StevenJanitor$10.00 $11.00 Machine Operator$22.28 $0.00 $17.97 $18.83 $19.69 $20.55 $21.42 $22.28 $22.28 $22.28 $22.28
88JoePlanner$19.75 $20.19 Janitor$15.00 $0.00 $11.00 $12.00 $13.00 $13.50 $14.50 $15.00 $15.00 $15.00 $15.00

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

Worksheet Formulas
CellFormula
E2=LOOKUP(D2,INDEX($M$2:$U$8,MATCH(C2,$I$2:$I$8,0),0),INDEX($N$2:$V$8,MATCH(C2,$I$2:$I$8,0),0))

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

<tbody>
</tbody>



I added a column with zeros in M. This is to handle the cases where the current pay is less than the minimum, like rows 4 and 7. You can hide the column if you want.
 
Upvote 0
Re: Look up cell in a vlook up then retrieve cell next to it-- Please help

Thanks Aladin. The formula works.
However when I drag the formula down it doesn't work anymore. I have 200+ Employees and I need to enter that formula in a spreadsheet and drag it down.
 
Upvote 0
Re: Look up cell in a vlook up then retrieve cell next to it-- Please help

Thanks Aladin. The formula works.
However when I drag the formula down it doesn't work anymore. I have 200+ Employees and I need to enter that formula in a spreadsheet and drag it down.

It's your layout as you specified in post #1 which does not allow "copying down", but it does to the right...


Book1
ABCDEFG
1JOBOperator 1Operator 2
2Current rate$10.00$12.00
3Next Rate10.514
4MaxRate 1Rate 2Rate 3Rate 4
5Operator 11299.7510.512
6Operator 21510121415
7Operator 3138.510.251213
Sheet1


In B3 control+shift+enter, not just enter, and copy across:

=IF(INDEX($B$5:$B$7,MATCH(B1,$A$5:$A$7,0))=B2,B2,MIN(IF($A$5:$A$7=B1,IF($C$5:$F$7>B2,$C$5:$F$7))))
 
Upvote 0
Re: Return cell next to a particular cell (IF, Match, Index)

Eric thanks so much. It works great.

Just one thing maybe you can help with. When the employees current rate is above the MAX Rate can it return the current rate. Is it possible to tweak formula to add this? This would make it work perfectly.
 
Upvote 0
Re: Return cell next to a particular cell (IF, Match, Index)

See if this works for you:

=IF(D2>=INDEX($V$2:$V$8,MATCH(C2,$I$2:$I$8,0)),D2,LOOKUP(D2,INDEX($M$2:$U$8,MATCH(C2,$I$2:$I$8,0),0),INDEX($N$2:$V$8,MATCH(C2,$I$2:$I$8,0),0)))
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,694
Members
449,117
Latest member
Aaagu

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