+ Reply to Thread
Results 1 to 8 of 8

Formula using Named Range with EVALUATE function only triggered by in-cell calculation

  1. #1
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    Hi all,

    Would be grateful of any assistance.

    Please see the attached. I have a Defined Name ("Search") with relative references which incorporates the EVALUATE function. This is incorporated in the formulas in the SEARCH tab so, for example, the formula in E2 may be copied across and down and give the desired results.

    This works fine until, for example, an appropriate entry in the DATASET tab is amended. (For example, change Birthplace in row 15 to anything else and return to the SEARCH tab.) No change (I am set to Automatic Calculation). Editing the cell with F2 and then committing the array formula anew does force the correct re-calculation.

    The point of this exercise is really an experiment to try to circumvent the need to manually amend the Named Range for each column as I drag across, and, since the Defined Ranges are all offset (though with INDEX, not OFFSET, so I presumed this wouldn't be an issue) I am unable to use INDIRECT, hence the attempt with EVALUATE.

    I am not very knowledgeable about macros (if EVALUATE can be said to be such) and if anyone can explain why re-calculation is not being triggered in this case, I would be grateful.

    Of course, I could (and may well) just go back to either non-offset ranges (so I can use INDIRECT on the header row to reference them) or simply make it so the order of columns in the data table is fixed and in the same order as that of the SEARCH sheet, so that I can simply increment with COLUMNS() in the original formula.

    Apologies if this is a little unnecessary and experimental, but would be very interested to know in any case.

    Regards
    Attached Files Attached Files
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    you can simply make Search volatile using
    =IF(NOW(),EVALUATE(SUBSTITUTE(SEARCH!F$1," ","_")))
    :-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    I changed the names in the bleu cells.

    Then I activated cell b1 in sheet 1 (F2 and then F4).

    For me it works.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    @JosephP - that's wonderful!! Just out of interest, why does it require such intervention in order to force a re-calc?

    @oeldere - thanks a lot but not sure I understand. The version you attached is not macro-enabled and/or the Search name containing EVALUATE has disappeared.

    I'll mark this solved in any case.

    Thanks a lot.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    honestly I don't know why it is required-perhaps simply too many levels of indirection

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    @XOR XL

    You don't have any code in your posted file, so then there is no differance between xlsx and xlsm (as far as I know).

    I changed the data in sheet 2 to test your file.

    After that I choose cel b1 => then choose F2 and F4).

    Then the changed data in sheet 2 (the blue cells) also change in the first sheet.

    See the attached file (xlsm).
    Attached Files Attached Files

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    Quote Originally Posted by oeldere View Post
    You don't have any code in your posted file, so then there is no differance between xlsx and xlsm (as far as I know).
    the use of XLM functions in defined names requires the use of a macro-enabled workbook format

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Formula using Named Range with EVALUATE function only triggered by in-cell calculation

    @oeldere,

    Not sure what you mean by "then choose F2 and F4"

    The sheet uses the EVALUATE function, which is an Excel version 4.0 macro function still available in most versions; though any workbook using that feature I understand must be saved as macro-enabled - the reason it didn't appear in the non-macro enabled version you posted (you should have seen a message when you tried to save it).

    Anyway, it's all good now.

    Thanks a lot

+ 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. Function Formula using cells in named Range
    By Ruthless in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2006, 03:46 PM
  2. Referencing cell in Named Range in Function VS Formula
    By Nyq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2006, 03:56 PM
  3. Offset Function works in cell, not in named range
    By DragonslayerApps in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. Offset Function works in cell, not in named range
    By DragonslayerApps in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. [SOLVED] Change event triggered by a named range
    By Sean in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2005, 10:05 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