+ Reply to Thread
Results 1 to 4 of 4

Assigning commonly used formulas a function name

  1. #1
    Forum Contributor
    Join Date
    02-24-2010
    Location
    BC, Canada
    MS-Off Ver
    Excel 2010
    Posts
    174

    Assigning commonly used formulas a function name

    I know this is possible because I've done it before, but google is not helping me out on this.

    There is a way to save commonly used formulas as a command. For example, if I used sum(R6:R8) a lot either as a formula or as a part of a formula, I could save it as the function SR and then use that instead. Can someone remind me how to do this?

    Thanks.
    Last edited by The Phil; 03-15-2010 at 07:24 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Assigning commonly used formulas a function name

    Hi Phil, my guess is you're referring to using a defined name. In 2003 I believe it's under Insert -> Name -> Define.

    Call the name what you want, e.g. SR, and then change the "Refers to" box to a formula like:

    =SUM(Sheet1!$R$6:$R$8)

    You can then use =SR anywhere to refer to that SUM. If you want it to be relative to the cell you're in, and not always R6:R8, then just remove the $'s.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Assigning commonly used formulas a function name

    define a name
    e.g
    to sum sheet1 a2:a5
    insert/name give it a name say "mysum"
    then in refers to put
    =SUM(Sheet1!$A$2:$A$5)

    use as =mysum
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    02-24-2010
    Location
    BC, Canada
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: Assigning commonly used formulas a function name

    Thanks guys, works for me!

+ 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