sum if and a range of cells

E

Erika

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?
 
B

Barb Reinhardt

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top