+ Reply to Thread
Results 1 to 4 of 4

Applying same formula on pre-determined cells

  1. #1
    Registered User
    Join Date
    02-21-2005
    Posts
    26

    Applying same formula on pre-determined cells

    Is it possible to apply the same formula, f.ex. SUM(A:Q), on various cells letīs say: 1, 15, 30, 45, 60, 75, 90,.... And not to make each calculation manually.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Hi, Andy. If you are asking for a way to use SUM on various cells throughout the worksheet, yes you can. Follow this format:

    =SUM(H12,H16,I17,K3,O4,N19,D22,A25) where each cell is listed separately (need not be in any specific order) and each separated by a comma ','.

    You can also SUM various ranges *and* individual cells using this format:

    =SUM(H12:H13,H16,I17:I21,K3,O3:O4,N19:N26,D22,A25)

    If this is not what you are looking for, please reply with more details.

    HTH

    Bruce
    Last edited by swatsp0p; 04-08-2005 at 09:11 AM. Reason: additional information...
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    02-21-2005
    Posts
    26
    Hi Bruce;

    thanx for your reply.

    What I want to do is: apply the same calculation SUM(A:X) on various rows(!). F.ex. on rows 1, 15, 30, ..... So, is there a way to determine this, or do I have to make the claculation on each of these rows separately?

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I am still not clear on your desire. Your formula, as written: =SUM(A:Q) will add *all* rows (from row 1 to row 65536) in all columns from A through Q.

    Do you mean =SUM(A1:Q1) and =SUM(A15:Q15), etc.

    Where on your sheet are you going to place these formulas? If you want the total at the end of each desired row (say in Row 1, Row 15, etc.) simply place =SUM(A1:Q1) in R1, then copy/paste to R15 and so on.

    If you want this calculation on another sheet, place this formula in row 1 and copy down. It will return the sum of every 15th row of sheet1 (i.e. rows 1, 15, 30, 45....) per your example.

    In row 1 of the other sheet, place this formula:

    =SUM(INDIRECT("Sheet1!A"&(ROW(1:1)):INDIRECT("Sheet1!Q"&(ROW(1:1)))

    In row 2 place this formula and copy down as far as needed:

    =SUM(INDIRECT("Sheet1!A"&(ROW(2:2)*15)):INDIRECT("Sheet1!Q"&(ROW(2:2)*15)))

    Good Luck

    Bruce

+ 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