+ Reply to Thread
Results 1 to 5 of 5

INDIRECT.EXT returns #VALUE

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    INDIRECT.EXT returns #VALUE

    In XL2007:

    Thanks to this forum I learned about INDIRECT.EXT. I'm stumped, though, when it returns the #VALUE error. If I use Formula Auditing, Evaluate Formula, to step through an AVERAGEIF function referring to a named range, each step but the last proceeds without error. The final evaluation of the function shows an array retrieved from the closed file. [Error is independent of settings for volatile and style.] The calculation is correct, though, if the file is open (it shows a range rather than an array during evaluation)!

    If I perform the same steps on an otherwise identical function using the original INDIRECT function the final step shows a range being retrieved rather than an array.

    Because I use a set of file names where the named range may have different addresses it is not possible to convert the formula to A1 style addressing. edit: Using a range, e.g., B13:O13 also returns an array when file is closed, so this is not a solution anyway

    Any clues on how to get the two functions to behave identically?

    Thanks.

    g
    Last edited by geoB; 11-08-2010 at 11:23 PM. Reason: further testing

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: INDIRECT.EXT returns #VALUE

    AVERAGEIF like SUMIF, SUMIFS, COUNTIF, COUNTIFS, AVERAGEIFS will not work with closed targets
    (ie - this is not related to INDIRECT.EXT per se)

    You should revert to an Average Array or SUMPRODUCT/SUMPRODUCT - personally I'd opt for the former.

  3. #3
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: INDIRECT.EXT returns #VALUE

    Thanks for your reply. Based on this, I threw this together. It meets my needs anyway:

    Please Login or Register  to view this content.
    Last edited by geoB; 11-08-2010 at 12:22 PM.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: INDIRECT.EXT returns #VALUE

    geoB, please ensure you surround your VBA with CODE tags at all times - please edit your prior post accordingly.

    Might also be an idea to outline how you are calling the UDF - presumably you are using INDIRECT.EXT to generate your Variant Array ?

  5. #5
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: INDIRECT.EXT returns #VALUE

    And now I've learned (relearned?) that one needs to "Go Advanced" to get at the CODE tag. I hope I've properly edited the above reply.

    g

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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