Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 120
Default sum if and a range of cells

Need to build a formula that will total up cells - if the information for the
current year is entered, see example. This spreadsheet has totals for 2006
and we like to compare the totals for 2006 with the totals for 2007.
JAN Feb March ......... Total

2006 20 8 18

2007 15 10 25



In the total column for 2006 I would only like to add up Jan and Feb because
currently there is not a total for March 2007 - when there is I would like to
formula to automatically adjust seeing that there is now a total in the March
2007 cell.

Is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default sum if and a range of cells

See your response under excel.misc.

"Erika" wrote in message
...
Need to build a formula that will total up cells - if the information for
the
current year is entered, see example. This spreadsheet has totals for
2006
and we like to compare the totals for 2006 with the totals for 2007.
JAN Feb March ......... Total

2006 20 8 18

2007 15 10 25



In the total column for 2006 I would only like to add up Jan and Feb
because
currently there is not a total for March 2007 - when there is I would like
to
formula to automatically adjust seeing that there is now a total in the
March
2007 cell.

Is this possible?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default sum if and a range of cells

Yes it is. Let's assume the following

Jan -Dec 2006 in B2:M2
Jan - Dec 2007 in B3:M3

N2: =SUM(OFFSET(A2,0,1,1,COUNTA(B$3:M$3)))
N3: =SUM(OFFSET(A3,0,1,1,COUNTA(B$3:M$3)))

HTH,
Barb Reinhardt
"Erika" wrote:

Need to build a formula that will total up cells - if the information for the
current year is entered, see example. This spreadsheet has totals for 2006
and we like to compare the totals for 2006 with the totals for 2007.
JAN Feb March ......... Total

2006 20 8 18

2007 15 10 25



In the total column for 2006 I would only like to add up Jan and Feb because
currently there is not a total for March 2007 - when there is I would like to
formula to automatically adjust seeing that there is now a total in the March
2007 cell.

Is this possible?

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
Match cells in Range 1 with cells in Range 2 Tan New Users to Excel 2 March 14th 07 01:24 PM
Find a range of values in a range of cells Jack Taylor Excel Worksheet Functions 20 November 25th 06 01:26 PM
how to compute a range of cells based on another range of cells? HAROLD Excel Worksheet Functions 1 December 30th 05 09:32 PM
how to compute a range of cells based on another range of cells? HAROLD Excel Worksheet Functions 2 December 30th 05 07:55 PM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


All times are GMT +1. The time now is 06:29 AM.

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"