+ Reply to Thread
Results 1 to 5 of 5

Formula for summing up row/column values

  1. #1
    Registered User
    Join Date
    01-21-2007
    Posts
    12

    Formula for summing up row/column values

    Hi All,
    I have some dynamic data which is displayed in excel. The number of rows/columns can vary.
    eg

    ----A----B----C-----D-----E
    1-------Tot
    2 Tot-------10---14---18
    3--------6-----1-----2----3
    4--------15----4-----5----6
    5--------6-----1-----2----3
    6--------15----4-----5----6


    I am clueless as to what formula needs to be set up to calculate the sum of column values (in row 2) and sum of row values (in column B).

    any kind o f help would be appreciated.

    thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Does this help

    =SUM(2:2)

    and

    =SUM(B:B)


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    01-21-2007
    Posts
    12
    I did try the solution that you proposed. however it leads to a circular reference error....does that mean i have to specify the exact row/columns in the range?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You have the formula in the same row or Column that you are totalling. Change the range to avoid the cell your formula is in e,g

    assume formula in B2 then enter something like

    =Sum(B3:B6000)

    VBA Noob

  5. #5
    Registered User
    Join Date
    01-21-2007
    Posts
    12
    Thanks for all your help.

+ 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