+ Reply to Thread
Results 1 to 11 of 11

How to make a function recognize a text in the function?

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Kl, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    35

    How to make a function recognize a text in the function?

    Eg.

    I name a few ranges as TotalExposure, TotalScore... This ranges contain numbers.

    Then I input "TotalExposure" to a cell(A1)

    In cell(A2), I type in =sum(A1). With the hope that it will become =sum(TotalExposure)

    But it turns out nothing.

  2. #2
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: How to make a function recognize a text in the function?

    You need to define a name range, in formulas tab go to Name Manager, then select new, on the NAME type TotalExposure and on the Refers to (bottom part of the name range window) select A2:A1000 (defends on the ranges you like) then click OK and CLOSE, now on B2 you can type the formula =SUM(TotalExposure) then Enter: note while typing =SUM(total - a drop down list will appear and looking your TotalExposure

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    Kl, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: How to make a function recognize a text in the function?

    Hi there, thanks for the reply.

    I understand what you are trying to show. But I want to key in "TotalExposure" into a cell(A1). Then in A2 I will type in =sum(A1). With this way I can change my target range easily without have to type the formula again.

  4. #4
    Forum Contributor
    Join Date
    09-11-2009
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    102

    Re: How to make a function recognize a text in the function?

    Hi,
    see attached file for your reference,

    Hope this helps!
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to make a function recognize a text in the function?

    ok checking
    Last edited by hemesh; 05-29-2013 at 03:02 AM.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,687

    Re: How to make a function recognize a text in the function?

    Quote Originally Posted by Ericng View Post
    Hi there, thanks for the reply.

    I understand what you are trying to show. But I want to key in "TotalExposure" into a cell(A1). Then in A2 I will type in =sum(A1). With this way I can change my target range easily without have to type the formula again.
    You need to use the INDIRECT function in this case
    Please Login or Register  to view this content.
    ALso avoid using volatile functions like OFFSET to define ranges, especially if you also use the INDIRECT function which is also volatile. You can name ranges using the INDEX function

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to make a function recognize a text in the function?

    still it is slight confusing. Do you want to type "TotalExposure" in cell A1 and then in A2 want the result as Sum(TotalExposure)

  8. #8
    Registered User
    Join Date
    01-22-2013
    Location
    Kl, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: How to make a function recognize a text in the function?

    Hi Everyone, Sorry for the late reply. Thanks for helping!

    Please refer to the attached file for better understanding.
    Sorry for the inconvenience.


    ex.xls

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to make a function recognize a text in the function?

    you can do =sum(indirect(g7))

  10. #10
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to make a function recognize a text in the function?

    if you find this helpful say thanks with "*".

  11. #11
    Registered User
    Join Date
    01-22-2013
    Location
    Kl, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: How to make a function recognize a text in the function?

    OMG!!! Thanks so much, everyone, especially Pepe Le Mokko and hemesh!

    Helped me solved a lot of problem.

+ 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