#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Sumif (Year)

Hi,
I need to sum a colunm based on the date the cell entered.

A1 has a year, 2009
A5:A10000 has Dates, 01/02/2009
E5:E10000 Data to sum
E1 the sum of all Column E entered in 2009

Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Sumif (Year)

Try

=SUMPRODUCT(--(YEAR(A5:A1000))=A1,E5:E1000)

HTH

Bob

"Mike 215" wrote in message
...
Hi,
I need to sum a colunm based on the date the cell entered.

A1 has a year, 2009
A5:A10000 has Dates, 01/02/2009
E5:E10000 Data to sum
E1 the sum of all Column E entered in 2009

Thanks for any help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Sumif (Year)

On Jan 23, 12:46*pm, "Bob Phillips"
wrote:
Try

=SUMPRODUCT(--(YEAR(A5:A1000))=A1,E5:E1000)

HTH

Bob

"Mike 215" wrote in message

...



Hi,
I need to sum a colunm based on the date the cell entered.


A1 *has a year, * * * * * * *2009
A5:A10000 *has Dates, *01/02/2009
E5:E10000 *Data to sum
E1 *the sum of all Column E entered in 2009


Thanks for any help.- Hide quoted text -


- Show quoted text -


Hi Bob,
I did a copy & paste and I typed it in but it is not working, it gives
a 0 answer.
I am running Office 2003 on XP. Does this matter?

Mike
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Sumif (Year)

I think that Bob may have intended to say not
=SUMPRODUCT(--(YEAR(A5:A1000))=A1,E5:E1000)
but
=SUMPRODUCT(--(YEAR(A5:A1000)=A1),E5:E1000)
as in his formula the double unary minus would have done nothing.
--
David Biddulph

"Mike 215" wrote in message
...

Hi Bob,
I did a copy & paste and I typed it in but it is not working, it gives
a 0 answer.
I am running Office 2003 on XP. Does this matter?


On Jan 23, 12:46 pm, "Bob Phillips"
wrote:
Try

=SUMPRODUCT(--(YEAR(A5:A1000))=A1,E5:E1000)



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Sumif (Year)

On Jan 23, 1:42*pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
I think that Bob may have intended to say not
=SUMPRODUCT(--(YEAR(A5:A1000))=A1,E5:E1000)
but
=SUMPRODUCT(--(YEAR(A5:A1000)=A1),E5:E1000)
as in his formula the double unary minus would have done nothing.
--
David Biddulph

"Mike 215" wrote in message

...



Hi Bob,
I did a copy & paste and I typed it in but it is not working, it gives
a 0 answer.
I am running Office 2003 on XP. *Does this matter?
On Jan 23, 12:46 pm, "Bob Phillips"
wrote:
Try


=SUMPRODUCT(--(YEAR(A5:A1000))=A1,E5:E1000)- Hide quoted text -


- Show quoted text -


David,
Your formula works great.
I have always been able to get great help here.

Thank You
Mike
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 with two conditions,current financial year date tkraju Excel Worksheet Functions 4 July 6th 09 06:52 PM
use sumif / Sumproduct for year data Chris26 Excel Worksheet Functions 5 June 11th 09 11:50 AM
Sumif by month and year Josh Hendrickson[_2_] Excel Worksheet Functions 7 March 30th 09 09:56 PM
Year To Date Sumif question Anne Excel Discussion (Misc queries) 6 January 10th 08 12:07 PM
sumif for months and year Kevin Excel Worksheet Functions 2 November 6th 07 06:03 PM


All times are GMT +1. The time now is 05:17 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"