+ Reply to Thread
Results 1 to 3 of 3

Thread: Cell prompts formula??

  1. #1
    Registered User
    Join Date
    08-12-2011
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2007
    Posts
    2

    Cell prompts formula??

    Say I have a fixed range of random numbers... ($A$1:$A$10)

    In the following cells I have the text:
    C1 "SUM"
    C2 "MAX"
    C3 "MIN"
    C4 "AVERAGE"
    C5 "COUNT"

    Is there a way to look at those cells and have them prompt the corresponding formula? I know I am missing something but say I am in Cell D1 - D5 here is essentially what it looks like (but is not working at the moment).

    =C1&($A$1:$A$10) - so that the formula knows to automatically SUM the range
    =C2&($A$1:$A$10) - so that the formula knows to automatically find the MAX of the range
    =C3&($A$1:$A$10) - so that the formula knows to automatically find the MIN of the range
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-26-2012
    Location
    Slovenia; Kranj
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Cell prompts formula??

    Hi,

    in D3 put this ...

    =IF(C3="SUM";SUM($A$3:$A$11);IF(C3="MAX";MAX($A$3:$A$11);IF(C3="MIN";MIN($A$3:$A$11);IF(C3="AVERAGE" ;AVERAGE($A$3:$A$11);IF(C3="COUNT";COUNT($A$3:$A$11);"NULL")))))

    ... and than drag down to the other cells. It is not the best solution, but it is working. There is Excel function INDIRECT, but I think that their purpuse is to read "cell's name" (F3), not formulas as "SUM".

    I think that you'll need to replace ";" with "," in formula.


    Cheers, Marko

  3. #3
    Registered User
    Join Date
    08-12-2011
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Cell prompts formula??

    Yeah, I ended up doing what you suggested ... great minds think a like!

    I hope someone knows a short cut though.. that would be great

+ 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.2.0