Reverse Vlookup

Jadre

New Member
Joined
Feb 26, 2014
Messages
18
could there to reverse vlookup like instead of getting a number out of the list it will take the number in the list

the number that i want in the list is in J3 and the list in B4:D23 could there be a way to take the number in J3 and scroll down the list looking for a certain name then when find it, it will go 3 cells sidways and place the number from J3 there

using a formula or macro


Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You have to have the person's name to look for. If you put the name to look for in K3 you can use the following:
Code:
Sub add_number()
    Number = Range("J3") 'cell to look for number
    person = Range("K3") 'cell to look for name
    Range("B3").CurrentRegion.Find(what:=person, after:=[b3], SearchOrder:=xlByRows, SearchDirection:=xlNext).Offset(0, 3).Value = Number
End Sub
 
Upvote 0
i hooked up the macro moved the name to K3 but it doesn't do anything, did i do something wrong???
 
Upvote 0
Step through it using F8 in the visual basic window. Yellow highlight means this is what it will do next. At each step, make sure its doing something, for the first two lines hover over 'number' or 'person' with your mouse and it should show a value.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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