+ Reply to Thread
Results 1 to 3 of 3

Excel formula for SUM of Varying number of Rows in a Particular column

  1. #1
    Registered User
    Join Date
    06-08-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Excel formula for SUM of Varying number of Rows in a Particular column

    Hi Friends,
    I have a similar requirement and am not able to find the solution. My requirement is i need excel formala to find the SUM of varying number of rows for a particular column.

    For eg:
    say my starting cell is A1.Data might populate from A1 to A3 in some instance and later from A1 to A10. So I need SUM of A1 to A3 or SUM of A1 to A10 in such cases. So please suggest me a formaula for this.

    Any help on this would be greatly appreciated. Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Excel formula for SUM of Varying number of Rows in a Particular column

    Hi

    If there is nothing else below your data, then simply
    =SUM(A:A)
    will return the correct value

    If you only wanted to sum from A1 down to a specific row number, then if you enter the ending row number in B1 you could use
    =SUM(A1:INDEX(A:A,B1))
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Excel formula for SUM of Varying number of Rows in a Particular column

    you can also name (let say r_data) a range (with Name Manager) with the following formula

    =OFFSET(Sheet1!$A$1;0;0;COUNT(Sheet1!$A:$A);1)

    and use the SUM(r_data). That range will expand and retract as you add or delete cells in column A.

    just make sure your data are contigous

+ 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