+ Reply to Thread
Results 1 to 9 of 9

Vlook up not finding what I am looking for

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Vlook up not finding what I am looking for

    Hi

    I am struggling with a simple formula - I am not an expert but do like working with Excel but I have come across a look-up problem when looking for the stock number of the item and can not work out what I am doing wrong. If you get a chance can you have a look and let me know what is the problem?

    Cheers
    Morgan
    Attached Files Attached Files
    Last edited by OHS Morgan; 12-12-2023 at 09:05 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Vlook up not finding what I am looking for

    Hi Morgan,

    In a VLOOKUP formula, the first column of the 'table array' range needs to contain the 'lookup value' you are searching for (if that makes sense?). I've amended the attached.

    Regards,

    Snook
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Vlook up not finding what I am looking for

    Hi The_Snook

    Thank you for your reply - I am looking for the stock number from the lookup - this looks like it has returned the price rather than the stock number in the stock no column. I just can't seem to work it out.

    Cheers
    Morgan

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Vlook up not finding what I am looking for

    Ah my bad, try this in cell B8:

    =INDEX(B2:B5,MATCH(C8,C2:C5,0))

    You can't use a VLOOKUP because the value you want to return is to the left of the criteria you are looking up.

  5. #5
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Vlook up not finding what I am looking for

    Or:

    =INDEX(Sheet1!B2:B6,MATCH(C8,Sheet1!C2:C6,0))

    If you want to look up the stock reference from the data on Sheet1.

  6. #6
    Registered User
    Join Date
    10-16-2012
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Vlook up not finding what I am looking for

    Hi The_Snook

    Thank you so much - Vlookup will only look to the right for a solution, I was unaware of that. I really appreciate your help. I have used the 2nd Index formula you sent which has worked a treat.

    That formula has 2 criteria in as much as index (look at the table the information is in) Then a match function to find the item in question. With Excel, I know enough to get myself in trouble often but mostly seem to be able to work it out but this time I felt sure Vlookup was the way to go.

    Thanks again and have a great day or evening
    Cheers
    Morgan

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,104

    Re: Vlook up not finding what I am looking for

    With 365, you could use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,104

    Re: Vlook up not finding what I am looking for

    Or you could use XLOOKUP:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,104

    Re: Vlook up not finding what I am looking for

    Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VLOOK Formula Only Shows the VLOOK Formula Instead of Lookup Value
    By onlyonekj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2017, 03:30 PM
  2. Vlook up
    By nik7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2016, 08:16 AM
  3. Using vlook up
    By mahershams in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-26-2013, 09:28 AM
  4. [SOLVED] VBA Vlook Up
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-19-2013, 05:35 AM
  5. Vlook Up
    By Merlin54k in forum Excel General
    Replies: 1
    Last Post: 02-11-2011, 01:40 PM
  6. Vlook up for finding 2 same items
    By jeevan in forum Excel General
    Replies: 1
    Last Post: 01-13-2009, 06:27 AM
  7. vlook
    By dj_siek in forum Excel General
    Replies: 3
    Last Post: 04-10-2007, 12:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1