+ Reply to Thread
Results 1 to 10 of 10

_xlfn.IFERROR Named Range?

  1. #1
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    _xlfn.IFERROR Named Range?

    I'm trying to learn what is causing for 2 named ranges to show up in essentially a blank workbook. By blank, in trying to learn/isolate what is causing this issues, I deleted every worksheet out of the file and resaved it under a new name.

    From what I can remember, the original file was made in Excel 2013 and it was also resaved as a 2013 file. The file is an 'xlsm' file as it did originally have a bunch of macros, but i stripped it all down to just the one macro to list out the named ranges.

    So a blank file that is giving to strange named ranges?

    EDIT. I just found another topic on this issue here. That attached sample probably/may not show any error it appears it may have 'disappeared' when you save close and reopen

    http://stackoverflow.com/questions/1...-does-not-work

    Now if I only I can find what is causing that in my original, bigger file.
    Attached Files Attached Files
    Last edited by ptmuldoon; 03-16-2016 at 08:46 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: _xlfn.IFERROR Named Range?

    Well, in further trying to solve seeing these strange 'errors'. I've found that this hidden namedrange of:

    _xlfn.IFERROR with a value of #NAME

    is actually being caused by use of the IfError formula of =IFERROR(G9/F9,"") My actual complete workbook makes use of the IfError formula extensively on multiple worksheets as well.

    This all seems strange as the formula is valid and the information is all in a 2013 workbook.

    Normally, this wouldn't bother me until recently when I started trying loop named ranges in a macro (separate issue) and VBA will return an error with a macro starting with an underscore.

  3. #3
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: _xlfn.IFERROR Named Range?

    I wanted to attach another example here and hoping someone may know the underlying cause issue. I think I may have read that a named range of something like "_xlfn.IFERROR" is actually an built-in name in Excel and there is possibly no way to get rid of it?

    In the attached, you'll see the Named Range Error being given. But if you then delete the formula in cell F15. Then save and reopen, that Named Range will actually disappear
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: _xlfn.IFERROR Named Range?

    I wanted to circle back and learn if anyone has any suggestions on why I may be seeing these errors when I list out my named ranges.

    There are essentially 3 'hidden' named ranges that I always see, and appears these cause issues when you try and work with and search named ranges in vba. The 3 'hidden' names I see are.

    _xlfn.COUNTIFS
    _xlfn.IFERROR
    _xlfn.SUMIFS

    And this is a 2013 workbook. And I've learned If I remove any CountIf, SumIf formulas from the workbook, those named ranges will disappear?

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: _xlfn.IFERROR Named Range?

    I ran this macro on your workbook and it made the _xlfn.IFERROR name appear in the Name Manager. This article has an explanation that applies to earlier versions of Excel so why it is appearing for you is a mystery.
    https://support.office.com/en-US/art...4-9FBB77FD5025

    This is the macro that I ran to make the name visible in the Name Manager
    Please Login or Register  to view this content.
    Upon downloading your file (open in Excel) I saved it to my HD and opened it without any errors showing. I ran the macro and the defined name did appear in the Name Manager.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: _xlfn.IFERROR Named Range?

    Those names will be created if you open an Excel 2007+ workbook in a version of Excel (e.g., 2003) before the functions existed.

    Even so, Excel 2003 will open such workbooks read-only, and if you save it by another name and then open it in a later version, the name goes away and the normal function re-appears, so I dunno how you managed to do that. I don't have Excel 2013 to test.
    Last edited by shg; 03-26-2016 at 11:49 AM.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    09-19-2013
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: _xlfn.IFERROR Named Range?

    Hi,
    I have these four, _xlfn.AGGREGATE, _xlfn.BAHTTEXT, _xlfn.GAMMA.DIST, and _xlfn.IFERROR, though I have only used IFERROR, having never even heard of the other three.
    They impede me from looping through the names and copying them to another workbook.
    Are they safe to delete?
    TIA.
    Cheers

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: _xlfn.IFERROR Named Range?

    Hi,

    You can't delete them if they are in use, so far as I know. You could simply add a test to your code to ignore names whose name begins with "_xlfn."
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  9. #9
    Registered User
    Join Date
    09-19-2013
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: _xlfn.IFERROR Named Range?

    Thanks. I will do just that, specially since I have no idea where they would be in use... I had never seen a range name beginning with _xlfn.
    Cheers.

  10. #10
    Registered User
    Join Date
    05-09-2019
    Location
    Venezuela
    MS-Off Ver
    2007
    Posts
    1

    Re: _xlfn.IFERROR Named Range?

    Excelente, gracias por el aporte

+ 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] Compare cells to named range and create new sheets using related named range
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2015, 03:35 PM
  2. [SOLVED] Assign named range to one cell depending on named range in another
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2015, 11:04 AM
  3. [SOLVED] determining if cell is part of named range and what that named range is
    By stnkynts in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2014, 07:56 PM
  4. Replies: 1
    Last Post: 02-27-2013, 12:00 AM
  5. _xlfn.AVERAGEIFS convert to 2003
    By ChrisRoc22 in forum Excel General
    Replies: 1
    Last Post: 10-05-2012, 07:30 AM
  6. [SOLVED] Determine what Named Range the Target Address is and return Named Range Name
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2012, 10:49 PM
  7. _xlfn.AVERAGEIF ... How do I remove this?
    By John Bates in forum Excel General
    Replies: 2
    Last Post: 08-21-2008, 10:42 AM

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