[Solved] VLOOKUP to the left column?

Discuss the spreadsheet application
Locked
TengoKbailar
Posts: 83
Joined: Sun Jan 17, 2010 10:00 pm

[Solved] VLOOKUP to the left column?

Post by TengoKbailar »

Hi All,
I am trying to use VLOOKUP to find a name in column J and return the date it was entered from column A. All the examples show returning a result from the column to the right of the search column. Can you tell me if VLOOKUP only works to the right and if/how I can find the date I need.

Thanks

Michael
Last edited by TengoKbailar on Sat Jul 11, 2015 5:10 am, edited 1 time in total.
OpenOffice 4.1.3 on MacOS X
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: VLOOKUP to the left column?

Post by RusselB »

I'd suggest using a combination of INDEX and MATCH rather than VLOOKUP
VLOOKUP only returns information located to the right of the lookup column.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
TengoKbailar
Posts: 83
Joined: Sun Jan 17, 2010 10:00 pm

Re: VLOOKUP to the left column?

Post by TengoKbailar »

Hi RusselB,
I thought that would be the case with VLOOKUP.
I can do the match part but how do I incorporate the INDEX into the formula?
Thanks
Michael
OpenOffice 4.1.3 on MacOS X
FJCC
Moderator
Posts: 9571
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: VLOOKUP to the left column?

Post by FJCC »

The formula will have the form

Code: Select all

=INDEX(A2:A100;MATCH())
assuming the dates you want to return are in the range A2:A100. If the value you are looking for is in B1, the formula might be

Code: Select all

=INDEX(A2:A100;MATCH(B1;J2:J100;0))
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
TengoKbailar
Posts: 83
Joined: Sun Jan 17, 2010 10:00 pm

Re: VLOOKUP to the left column?

Post by TengoKbailar »

Thats Great
Thank you :-)

Michael
OpenOffice 4.1.3 on MacOS X
Locked