+ Reply to Thread
Results 1 to 8 of 8

"Call" formula from another cell

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    "Call" formula from another cell

    Lets say I have several formulas that I need to invoke in a cell. Which formula to be used to evaluate the cell is dependent on the result of an additional conditional formula. Is there a way to place these several evaluation formulas in an external array and call for them based on the result of the conditional formula. For example:

    A B
    1 ROUND(__)
    2 SUM(__)
    C1 is =IF(D1>E1,[formula in B1 invoked on D1],[formula in B2 invoked on D1:E1])

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

    Re: "Call" formula from another cell

    You probably need code unless there are only a few formulas when you can use IF functions or equivalent. Depending on what the functions are you may also be able to use SUBTOTAL or AGGREGATE
    Josie

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

  3. #3
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: "Call" formula from another cell

    Trying to avoid code at present.

    Example was oversimplification. Called formulas would perform lookup or similar functions, not math operations.

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

    Re: "Call" formula from another cell

    Then you will require nested IF functions or similar-you can use XLM functions but that's basically code

  5. #5
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: "Call" formula from another cell

    That's the impression I had.

    Was also searching the web about this type of functionality and came acroos something called "morefunc" add-in that adds among others, a formula() function to Excel. Has any body tried it? Comments? Recommendations?

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

    Re: "Call" formula from another cell

    It has an EVAL function that will probably work if you can use an add-in (not clear why that's better than code for you?)

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: "Call" formula from another cell

    the sample uses named range then
    refers to: =evaluate()

    maybe.xlsm

    file should be saved as macro enabled.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  8. #8
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: "Call" formula from another cell

    I see that performs the example I gave, but I can't figure out how to implement that functionality into my "real" file. Perhaps you can explain, say starting with a blank xlsx workbook.

+ 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