View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pecoflyer[_359_] Pecoflyer[_359_] is offline
external usenet poster
 
Posts: 1
Default use sumif / Sumproduct for year data


Hi,

have you tried a Pivot Table ?
Group by moths and years and place the month field before the year
field

Chris26;377253 Wrote:
Hi
I have a set of daily data (total rainfall) for100 years.
What would be the easiest way to extract the total rainfall for:-
January Year 2000-2100, February 2000-2100 etc
and also
Total rainfall for 2001, 2002 etc

Col A (Date-Days) Col B (Rainfall mm) Col C (Format to
only
show year)
1 Jan 2001 0
2001
2 Jan 2001 6
2001
3 Jan 2001 4
2001
to
31 Dec 2100 20
2100

I have manged to get the following to work
=SUMPRODUCT((TEXT(C3:C36526,"yyyy")="2001")*(B3:B3 6526)) although is
it
possible to change "2001" to a cell ref so dont have to go into each
individual line and cgange to "2002", "2003" etc

Many Thanks
Chris



--
Pecoflyer

Cheers -
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105569