+ Reply to Thread
Results 1 to 7 of 7

Starting a formula with a reference cell?

  1. #1
    Registered User
    Join Date
    10-29-2009
    Location
    london enhland
    MS-Off Ver
    Excel 2003
    Posts
    32

    Starting a formula with a reference cell?

    Hello guys,

    I would like to start a formula with a reference cell and cannot figure out how. For example, in cell A1 i have the text correl, and in b1, would like to start the formula with =A1(range, range) to get the correlation of the two ranges? Any idea how?

    Thanks a lot

  2. #2
    Registered User
    Join Date
    11-17-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Starting a formula with a reference cell?

    I don't quite follow the question. A cell reference is not a function, so there are no parameters to pass between the ( ). try describing what you want the output in B1 to be exactly, or attach a file so that we can get a better look at what your trying to do.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Starting a formula with a reference cell?

    I assume you are trying to get B1 to result in:

    Please Login or Register  to view this content.
    You can play around with the INDIRECT() function.

    Maybe

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-17-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    12

    Red face Re: Starting a formula with a reference cell?

    *face palm*

    now i get what the original question is! I was asking myself "why is he talking about correlations in reference to some strange last name stored in cell A1 called Correl?"

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Starting a formula with a reference cell?

    There is no basic Excel Function that will do this. You could download the free add-in morefunc

    http://longre.free.fr/english/ and use the EVAL function.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Starting a formula with a reference cell?

    I don't think INDIRECT will work for something like this.

  7. #7
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581

    Re: Starting a formula with a reference cell?

    I don't do this much, but there are a couple possibilities. This just provides a basic outline, the actual assembly of the function plus parameters just requires string concatenation accompanied by the proper punctuation.

    1. You can use VBA. It has an EVALUATE function. An example of how you could call it is as follows:
    MsgBox = EVALUATE("SUM(1,1,1,1,1)")

    The key thing is that you would have assembled the function into a string based off what you have entered in your cells.

    2. You can use the XLM version of EVALUATE in named ranges. For example, I put the following:
    B4: SUM
    B5: 1
    B6: 1

    Then by creating the named range Test and setting it up as follows:
    Test: =EVALUATE($B$4&"("&$B$5&","&$B$6&")")

    Subsequently, using:
    C4: =Test

    Returns a value of 2.

    S

+ 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