Closed Thread
Results 1 to 9 of 9

Named Range Problem within a VLookup

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    Laem Chabang, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    47

    Named Range Problem within a VLookup

    I am trying to run a VLookup across 19 tabs. The formula and result are below


    =Vlookup(2255099,INDIRECT("'"&CENTERS&"!A5:R395""),13,0) returns a #VALUE

    When I evaluate the formula, the result is:

    =Vlookup(2255099,INDIRECT("'"&#VALUE&"!A5:R395""),13,0)

    Does the #VALUE where CENTER was mean there is a problem with my Named Range?

    Thanks.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Named Range Problem within a VLookup

    Hi Renleff,

    INDIRECT and Named Range are two very different things.

    If CENTERS is a Named Range then your VLOOKUP formulas should look like this

    =VLOOKUP(2255099,CENTERS,13,0)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Named Range Problem within a VLookup

    How is CENTERS defined?

    If CENTERS spans more than one sheet it won't work.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-28-2013
    Location
    Laem Chabang, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Named Range Problem within a VLookup

    Hi AlKey,

    When I tried your formula it returned a #NA. I may certainly be misguided but the reason I used the INDIRECT is that I want the formula to look at each tab within Named Range and then look for the specific criteria within the range I listed A5:R395, column 13.

    Thanks.

    Renleff

  5. #5
    Registered User
    Join Date
    08-28-2013
    Location
    Laem Chabang, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Named Range Problem within a VLookup

    Tony,

    Centers is a Named Range comprising 19 tabs and this is why I thought I needed to us the Indirect function.

    Thanks

    Renleff

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Named Range Problem within a VLookup

    What type of data is the formula supposed to return? Is it text? Numeric? Could be either? Something else?

    What are the sheet names? Are they random names or do they follow some sequential naming pattern?

    Will the lookup value always be found on one of the sheets?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Named Range Problem within a VLookup


  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Named Range Problem within a VLookup

    The same formulas in the first post, I would say yes.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: Named Range Problem within a VLookup

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem using an named range in VLOOKUP
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2013, 01:18 PM
  2. Using Named range in a Vlookup
    By bernie.kruger in forum Excel General
    Replies: 7
    Last Post: 11-03-2010, 09:22 AM
  3. Using a named range in a vlookup
    By AnthonyWB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2010, 05:20 PM
  4. Using named range in vlookup
    By lasca in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2005, 10:16 AM
  5. Insert Vlookup into table_array of Vlookup with named range
    By Denise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2005, 07:06 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