#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Sumif

I have a data range A-H with an expanding number of rows. Column A contains
dates. Column H contains totals of the input in columns B-G. I want the
totals for each month and am trying the formula
=SUMIF($A$2:$H$30,(MONTH($A$2:$A$30)=4),$H$2:$H$30 ) but get 0 as the result.
Excel says the criteria is True and there are figures in column H. Why does
this not work and is there an alternative?

Thanks,

Ron R.



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Sumif

=SUMPRODUCT(--(MONTH($A$2:$A$30)=4),$H$2:$H$30)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"ronnomad" wrote in message
...
I have a data range A-H with an expanding number of rows. Column A
contains
dates. Column H contains totals of the input in columns B-G. I want the
totals for each month and am trying the formula
=SUMIF($A$2:$H$30,(MONTH($A$2:$A$30)=4),$H$2:$H$30 ) but get 0 as the
result.
Excel says the criteria is True and there are figures in column H. Why
does
this not work and is there an alternative?

Thanks,

Ron R.





  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Sumif

Bob,

Works perfectly. thanks

Ron

"Bob Phillips" wrote:

=SUMPRODUCT(--(MONTH($A$2:$A$30)=4),$H$2:$H$30)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"ronnomad" wrote in message
...
I have a data range A-H with an expanding number of rows. Column A
contains
dates. Column H contains totals of the input in columns B-G. I want the
totals for each month and am trying the formula
=SUMIF($A$2:$H$30,(MONTH($A$2:$A$30)=4),$H$2:$H$30 ) but get 0 as the
result.
Excel says the criteria is True and there are figures in column H. Why
does
this not work and is there an alternative?

Thanks,

Ron R.






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
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Sumif and IF ??? Neophyte New Users to Excel 1 February 11th 07 03:02 AM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
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


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

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"