Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default sumif for a specific number of cells

I have a 52 columns, one for each week of the year. Each column has 10 rows
of data. I need a totals line which, for each row, sums 13 columns (13 weeks)
but the 13 colums it sums needs to be changable ie sum weeks 1-13 or 14-27 or
32-35 etc. Any idea how I make this formula driven - my thoughts were to use
a sumif formula and input the criteria to sum the numbers between week 14 and
27 (taking 14 and 27 from an input in another cell).

Any ideas on how I solve this? Thanks. Simon
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default sumif for a specific number of cells

At the bottom of the 13th column (M?), put this formula:

=SUM(A2:M11)

Then just copy it across.

Hope this helps.

Pete

On Jan 20, 2:19*pm, simon1982
wrote:
I have a 52 columns, one for each week of the year. Each column has 10 rows
of data. I need a totals line which, for each row, sums 13 columns (13 weeks)
but the 13 colums it sums needs to be changable ie sum weeks 1-13 or 14-27 or
32-35 etc. Any idea how I make this formula driven - my thoughts were to use
a sumif formula and input the criteria to sum the numbers between week 14 and
27 (taking 14 and 27 from an input in another cell).

Any ideas on how I solve this? Thanks. Simon


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default sumif for a specific number of cells

I think I misread your requirements. You want a total on each row,
which covers 13 columns (which can be variable)?

Assuming your data occupies A2:AZ11, then put 1 in BA1 and this
formula in BA2:

=SUM(INDIRECT("RC"&BA$1&":RC"&BA$1+12,0))

Copy this down to BA11. It will sum up 13 columns for each row,
starting with the column number in BA1 - just change this value for a
different 13 columns (max 40).

Hope this helps.

Pete

On Jan 20, 2:44*pm, Pete_UK wrote:
At the bottom of the 13th column (M?), put this formula:

=SUM(A2:M11)

Then just copy it across.

Hope this helps.

Pete

On Jan 20, 2:19*pm, simon1982
wrote:



I have a 52 columns, one for each week of the year. Each column has 10 rows
of data. I need a totals line which, for each row, sums 13 columns (13 weeks)
but the 13 colums it sums needs to be changable ie sum weeks 1-13 or 14-27 or
32-35 etc. Any idea how I make this formula driven - my thoughts were to use
a sumif formula and input the criteria to sum the numbers between week 14 and
27 (taking 14 and 27 from an input in another cell).


Any ideas on how I solve this? Thanks. Simon- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to place the same value in a specific number of cells flarunner Excel Worksheet Functions 4 May 20th 08 08:56 PM
sumif where cells contain Number & Text Fred Excel Discussion (Misc queries) 10 January 23rd 07 09:22 PM
Is it possible to count specific words in a number of cells? theboytree Excel Discussion (Misc queries) 1 June 15th 06 09:29 AM
Finding cells with a specific number of characters Kamran Excel Discussion (Misc queries) 6 March 29th 06 11:04 PM
How do I format cells to a specific number of digits? Gabriele Excel Discussion (Misc queries) 3 February 5th 05 03:17 PM


All times are GMT +1. The time now is 10:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"