+ Reply to Thread
Results 1 to 3 of 3

Sum

  1. #1
    Registered User
    Join Date
    10-01-2007
    Posts
    49

    Sum

    So imagine you have numbers in Cells A1:A10. In A11 you want to SUM all of these, but you ONLY want to sum the cells chosen by a user, so you have cells A20 and A21 as your FROM and TO.

    So, if you type 3 in cell A20, and 7 in cell A21, you want your sum function to read SUM(A3:A7). The problem is, you can't write a sum function to read:

    SUM(A(A20):A(A21)) - it simply doesn't work. There has to be an easy way to do this. I'm thought about using SUMIF, but there really isn't an IF statement or operator I can use on this that I can think of. Any ideas?

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Advanced SUM Question

    =sum(indirect("a"&a20&":"&"a"&a21))
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Advanced SUM Question

    There's also the non-volatile Index formula: =SUM(INDEX(A1:A10,A20):Index(A1:A10,A21))

+ 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