Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Usage of sumif
Lets assume I have a spreadshee. Cells A1-A365 has dates from January 1st
2004 to December 31st 2004. Cells b1-b365 has values. And cells C1-C12 I have the months as follows Jan04, Feb04, Mar04, Apr04 etc. I want to compute all the values for January 04 and put the result in cell d1 (for Jan), D2 for Feb, D3 for Mar etc. how can I do this using sumif? My problem really is how can I compare the months so Jan04 compares to 01Jan04, 02Jan04, o3jan04 etc? |
#2
|
|||
|
|||
Hi!
Are your values in C1:C12 TEXT or formatted dates? They look like TEXT to me. Biff -----Original Message----- Lets assume I have a spreadshee. Cells A1-A365 has dates from January 1st 2004 to December 31st 2004. Cells b1-b365 has values. And cells C1-C12 I have the months as follows Jan04, Feb04, Mar04, Apr04 etc. I want to compute all the values for January 04 and put the result in cell d1 (for Jan), D2 for Feb, D3 for Mar etc. how can I do this using sumif? My problem really is how can I compare the months so Jan04 compares to 01Jan04, 02Jan04, o3jan04 etc? . |
#3
|
|||
|
|||
One way: in C1 and copy down:
=SUMPRODUCT(--(MONTH($A$1:$A$365)=ROW()),$B$1:$B$365) Another way, assuming you have true dates (not text) in column A, is to put headers in row 1, then use a pivot table. Use the Dates as a row field and the values in column B as the data field. Group the dates by month and year. On Mon, 7 Mar 2005 20:55:06 -0800, "Charles" wrote: Lets assume I have a spreadshee. Cells A1-A365 has dates from January 1st 2004 to December 31st 2004. Cells b1-b365 has values. And cells C1-C12 I have the months as follows Jan04, Feb04, Mar04, Apr04 etc. I want to compute all the values for January 04 and put the result in cell d1 (for Jan), D2 for Feb, D3 for Mar etc. how can I do this using sumif? My problem really is how can I compare the months so Jan04 compares to 01Jan04, 02Jan04, o3jan04 etc? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to use SUMIF to return sums between two values located in cells | Excel Worksheet Functions | |||
SUMIF Not | Excel Discussion (Misc queries) | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions | |||
Display material with usage | Excel Worksheet Functions | |||
SUM(IF( Array to avoid #NUM! values | Excel Worksheet Functions |