#1   Report Post  
Charles
 
Posts: n/a
Default 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   Report Post  
Biff
 
Posts: n/a
Default

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   Report Post  
Myrna Larson
 
Posts: n/a
Default

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
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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF Not vanjohnson Excel Discussion (Misc queries) 1 March 4th 05 08:42 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
Display material with usage lintan Excel Worksheet Functions 4 November 25th 04 08:32 AM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 11:42 PM.

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

About Us

"It's about Microsoft Excel"