+ Reply to Thread
Results 1 to 4 of 4

Evaluate Sub-formula Only Once

Hybrid View

  1. #1
    Registered User
    Join Date
    12-16-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Evaluate Sub-formula Only Once

    That's great, thanks for your help

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

    Re: Evaluate Sub-formula Only Once

    Prior to XL2007 you can ape IFERROR via a UDF.

    Alternatively if as implied in OP the output of the formula is a consistent data type (eg number) then you can also adopt an approach along the lines of:

    =LOOKUP(9.99E+307,CHOOSE({1,2},0,f()))
    here the f() formula [whatever it is - we assume non-UDF] is evaluated only once.

    for a text output with say default of Null you would use:

    =LOOKUP(REPT("Z",255),CHOOSE({1,2},"",f()))
    (assumes f() will not a return a string > 255 chars)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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