+ Reply to Thread
Results 1 to 5 of 5

Issue with VLOOKUP & Grid names...

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    Posts
    5

    Issue with VLOOKUP & Grid names...

    Hi,

    I'm having an issue with VLOOKUP, I'll keep it short as I don't think I need loads of details because I have done some troubleshooting and believe got to the cause of the problem... I just don't know how to fix it!

    Please Login or Register  to view this content.
    The following code works correctly and finds the contains of D11 in the 'SunGrid'.

    However I wish the 'Sun' to be a variable and get its contains from another cell (C11)... so I'm using this:

    Please Login or Register  to view this content.
    The contains of C11 is 'Sun' no spaces or strange formatting. I've also tried putting brackets around (C11 & "Grid"). Using the 'Show calculation steps' the end result looks exactly the same as the formula that works above... so I don't understand what the problem is!

    The error I recieve on the above formula is '#VALUE!'

    Anyone able to assist me?

    Many Thanks,

    Sean
    Last edited by Gr44; 10-15-2008 at 06:03 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    You need to use the INDIRECT function

    =VLOOKUP(D11,INDIRECT(C11&"Grid"),2,0)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day Sean and welcome to the forum,

    Try this

    Please Login or Register  to view this content.
    Please try it with the "" and without the ""

    HTH
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  4. #4
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    Posts
    5
    Ahhh....

    No idea what that does so I'm off to use Excel help!

    Many thanks though, worked a charm!

    Cheers,

    Sean

  5. #5
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    Posts
    5
    Thanks RatCat, AndyPope beat you to it though! ;-)

    Thanks for the welcome & the fast response from both of you. Very much appriciated!

    No doubt I'll ask some more noobie questions soon!

    Many Thanks,

    Sean

+ 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. VLOOKUP issue...
    By aikorei in forum Excel General
    Replies: 7
    Last Post: 09-22-2008, 11:56 AM
  2. vlookup using names
    By mnomarhas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2008, 04:59 AM
  3. Vlookup using two columns-needs to match the first two column
    By pduubb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2008, 01:21 PM
  4. VLOOKUP Issue
    By FM1 in forum Excel General
    Replies: 2
    Last Post: 03-12-2008, 06:52 PM
  5. VLOOKUP Issue
    By ShredDude in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2008, 05:07 PM

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