+ Reply to Thread
Results 1 to 7 of 7

#NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP function??)

  1. #1
    Registered User
    Join Date
    08-24-2018
    Location
    Phoenix, Arizona
    MS-Off Ver
    365
    Posts
    5

    #NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP function??)

    Hi All-
    I've built a workbook with a few different VLOOKUPs and named arrays in it. Everything works fine, regardless of machine, as long as its running Excel 365. However, when using Excel 2010, I'm getting a #NAME error.

    Interestingly, I have two very similar formulas in different cells. One is getting the #NAME error, the other is not.

    Rather than posting the entire workbook (which would require quite a bit of work to remove proprietary information), see the simplistic representation below:

    CELL D5: "Select a color to show a list of fruit that match:"
    CELL E5: is defaulted to "RED", but uses Data Validation to limit to Red, Yellow, Green

    There are a few handler cells and rows in between, but CELL D15 is the problem cell. When you first open the document and the default RED selection is in E5, it correctly shows "Apple". However, if you change E5 to anything (including changing it back to "RED", it produces a #NAME error. Here's the formula:

    =IF(VLOOKUP($D$8,INDIRECT($D$7),3,FALSE)=0,"ERROR",VLOOKUP($D$8,INDIRECT($D$7)3,FALSE))

    The same selection in cell E5 also updates cell D17 with a slightly different formula. This formula works with no problems at all. It is:

    =INDEX(INDEX(Table1,0,1),MATCH($E$5,INDEX(Table1,0,4),0))

    Again, this all works fine in Excel 365, and the issues are in Excel 2010. I don't think that either VLOOKUP or INDIRECT are so new to Excel that they wouldn't work in 2010, but that's my best guess. Unfortunately, I need to distribute this tool to external customers and I've found that many of them don't have the latest version of Excel. Any help to get this working on older versions would be greatly appreciated!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: #NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP functio

    You left out the essential part, which is what is in the cells referenced in your formula? That is, D8 and D7. I'm betting the problem is in D7 related to INDIRECT.

    BTW I do not find that these two formulas are very similar. They are quite different.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-24-2018
    Location
    Phoenix, Arizona
    MS-Off Ver
    365
    Posts
    5

    Re: #NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP functio

    Thanks Jeff - both for your prompt reply and for helping me realize that my attempt to "describe" the problem as opposed to posting an example was futile!

    See attached workbook. When selecting a different "Internal Sales Person" the "Carrier Sales Rep" gives me a #NAME error, but the "Internal Support Team" does not.

    The full version of the workbook has about 30 carriers (each of whom have their own Tab/ Named Range) to choose from and over 80 Internal Sales Reps. The "Internal
    Support Team" displayed at the bottom is determined only by the "Internal Sales Person" selected. However, the "Carrier Sales Rep" displayed is determined by both
    the "Internal Sales Person" as well as the "Carrier" selected. Thus, the end results of the two formulas are pretty similar, but the mechanisms needed to get there
    are quite different.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: #NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP functio

    Thanks. I was able to diagnose this in about 30 seconds using your file. It would have taken a lot longer to go back and forth in posts.

    The formulas in row 15 are giving you a NAME error because they all reference D8, which is giving you a NAME error. I was wrong about D7 but D8 was my second suspect and has been found guilty. The formula in D8 is

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I am using Excel 2016. The _xlfn. indicates that the CONCAT function is not available in my version of Excel. It is not available in any version earlier than Office 365. CONCAT allows for full column and row references, such as CONCAT(A1:B5), where it will concatenate all cells in that range. CONCATENATE will not do that. But your formula doesn't need that. So use CONCATENATE instead to solve your problem.

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: #NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP functio

    You used the CONCAT function in D8, which is only available in Office 365 and perhaps standalone versions of Excel after Excel 2016.

    The MSFT help page is confusing as usual, saying in one place that the function is available in "Excel 2016", but adding the caveat in another place that: ``This feature is not available in Excel 2016 unless you have an Office 365 subscription``.

    We do not see the error initially because the workbook is no recalculated when we open the file, but it is recalculated when we edit the file (e.g. change the selection E5).

    After doing so, we continue to see the #NAME error in D8 even if we return to the original selection.
    Last edited by joeu2004; 10-12-2018 at 08:45 PM.

  6. #6
    Registered User
    Join Date
    08-24-2018
    Location
    Phoenix, Arizona
    MS-Off Ver
    365
    Posts
    5

    Re: #NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP functio

    Welp... there it is!! Thanks so much, Jeff. It figures that in as detailed a formula as the one I posted the problem would be in the "ENATE" of another cell!

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: #NAME Error in Excel 2010 but not in Excel 365 (related to INDIRECT or VLOOKUP functio

    There is a compatibility checker in excel for this purpose,

    File > Info > Check for issues > Check compatibility.

    This will tell you of any features that you have uses which are not compatible with older versions of excel. You need to do this in the version that the file works with, in your case, office 365.

    Running the checker in excel 2010 will only highlight things that will work in 2010, but not in 2007 or older. It will not highlight things from 2013 or newer that are not compatible with 2010.

+ 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. Save Macro Related question in Excel 2010
    By Tescatlipoca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2014, 02:46 PM
  2. [SOLVED] Is Excel 2010 able to use the INDIRECT function twice on the same source? Dep. Lis Help
    By sajanpatel15 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-29-2013, 06:57 PM
  3. INDIRECT.EXT With Excel 2010, #REF error
    By DevinRaw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2013, 06:48 AM
  4. EXCEL 2010 - VLookup = circular ref error + timestamp
    By persais in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2013, 05:47 PM
  5. VLOOKUP function on Excel 2010 not working
    By Kiron in forum Excel General
    Replies: 7
    Last Post: 11-14-2012, 03:31 PM
  6. Need INDIRECT function for Excel 2010
    By steinfm in forum Excel General
    Replies: 4
    Last Post: 09-20-2011, 08:00 PM
  7. Error using Excel add-in with INDIRECT.EXT function
    By Barb Reinhardt in forum Excel General
    Replies: 3
    Last Post: 10-06-2005, 12:05 PM

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