+ Reply to Thread
Results 1 to 7 of 7

Named Range error

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Named Range error

    I apologize in advance for the lengthy post.

    Quick overview of issue:
    Error in data validation: “A named range you specified cannot be found.” However, the named ranges are in the Name Manager, and if I go to the sheet and select the range, I can see it is already named.

    Full description:
    I created a spreadsheet model (no VBA, just formulas, etc) in a workbook that another coworker took and added VBA to. However, he was not working with the most updated version. So last night I checked the sheets which had the same names, made sure there were no differences except the changes I had made since that version, and then moved the ones from my current workbook into his workbook.

    On the sheet where the user was to input details of the report, there are 4 cells that each contain different lists (non-dependent). I want the user to only be able to choose one of the 4 drop down menus - that is, if any of the 4 cells are filled in, I would like the other 3 to default to N/A (or somehow not be allowed to be chosen). This was solved in a previous thread:
    http://www.excelforum.com/excel-form...html?p=3382993
    Using A1: =IF(COUNTA(A2:A4),NA(),G2:G6) from the other thread solution, I used a named range instead of G2:G6 and it worked well.

    When I merged the files together, the 4 cells no longer worked at all. It was suggested that I look at the Name Manager, and some of te named ranges I had were in there multiple tiimes. I cleaned them up.

    I tried to enter the same formula again, and it gave me the specific error: “A named range you specified cannot be found.” However, the named ranges are in the Name Manager, and if I go to the sheet and select the range, I can see it is already named.

    Any ideas?

    I am unable to load the spreadsheet due to sensitive data, and removing the data would make the workbook make no sense.

    Thanks, if you read this far.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Named Range error

    I tried to enter the same formula again, and it gave me the specific error: “A named range you specified cannot be found.”
    what is the formula?

    However, the named ranges are in the Name Manager, and if I go to the sheet and select the range, I can see it is already named.
    You can see the name, but what is the range that it shows? Is it an actual range (and the correct 1) or an error?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Re: Named Range error

    Quote Originally Posted by FDibbins View Post
    what is the formula?


    You can see the name, but what is the range that it shows? Is it an actual range (and the correct 1) or an error?
    Formula is
    =IF(COUNTA(A2:A4),NA(),ListOne)
    It is the correct range in the Name Manager, with respect to both Value and Refers To columns.

    However, now that I look at this more closely, it says the Scope is just the worksheet it is on. How can I change that?

  4. #4
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Re: Named Range error

    Oh I think I found where I can do that. Let me try to see if that makes it work.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,814

    Re: Named Range error

    The names you need might have been defined with only worksheet scope, rather than the full workbook, especially if there were other identical names there first. Better to remove all the named ranges that were duplicated and then to re-define them, and that should give them workbook scope.

    Hope this helps.

    Pete

    EDIT: Ah, I seem to have confirmed what you have found yourself.

    Pete

  6. #6
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Re: Named Range error

    Yes, it worked! Thank you Thank you Thank you!!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Named Range error

    Happy to help and thanks for the feedback

+ 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. Named Range Error
    By matt4003 in forum Excel General
    Replies: 2
    Last Post: 06-09-2011, 07:57 PM
  2. Named Range Error
    By wildjester in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2009, 03:12 AM
  3. Named range error
    By hvisa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-31-2007, 12:52 PM
  4. [SOLVED] Named range error
    By Antman in forum Excel General
    Replies: 3
    Last Post: 07-12-2006, 09:45 PM
  5. Named range REF# error
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2005, 04:45 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