Getting the Cell Reference from a VLOOKUP

Mattyastill

New Member
Joined
Nov 27, 2017
Messages
23
Hi,

I'm currently trying to write the cell ref of a vlookup (M2) i've used in the cell next to it N2. This is the formula i've used for the lookup.

=VLOOKUP(F2,AxTable1[[VPN]:[Item VAT]],1,FALSE)

The idea of what im doing is bringing back an item number and then i need to bring back a quantity for that item number. However, Qty's are not unique so i would need the cell ref to search for the quantity on the same row as what the previous vlookup returned.


I've tried a combination of Address, Match and Index but can't seem to get it working.

Any help would be much appreciated.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
These two formulas with different column index numbers:

=VLOOKUP(F2,AxTable1[[VPN]:[Item VAT]],1,FALSE)

=VLOOKUP(F2,AxTable1[[VPN]:[Item VAT]],2,FALSE)

will both return values in the table from the same row (provided they dont error of course)
 
Upvote 0
see if you can get this work for you, the '4' at the end of the formula is the column index in your vlookup table


Book1
ABCD
11A
23$D$32B
33C
44D
55E
Sheet1
Cell Formulas
RangeFormula
B2=ADDRESS(MATCH(VLOOKUP(A2,C1:D5,2,0),D:D,0),4)
 
Upvote 0
Thanks soo much, this worked a treat. I think i was trying to make it far more complicated than it needed to be. Just a standard VLookup worked.
 
Upvote 0
you're welcome
glad that works for you
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,181
Members
452,615
Latest member
bogeys2birdies

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