#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Entries per year

I have a spreadsheet with a column for date. I would like to use a function
that will tell me how many entries there are per year. I have the dates
entered as 7/29/2009, etc. I can't seem to get it right. Any ideas? Thanks
in advance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Entries per year

Hi,

Suppose your dates are in column A then enter the year in G1, say 2009 and
then use

=SUMPRODUCT(--(YEAR(A1:A28)=G1))

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"onebodaciousbabe03" wrote:

I have a spreadsheet with a column for date. I would like to use a function
that will tell me how many entries there are per year. I have the dates
entered as 7/29/2009, etc. I can't seem to get it right. Any ideas? Thanks
in advance!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Entries per year

onebodaciousbabe03 wrote:
I have a spreadsheet with a column for date. I would like to use a function
that will tell me how many entries there are per year. I have the dates
entered as 7/29/2009, etc. I can't seem to get it right. Any ideas? Thanks
in advance!


A few ways...

This regular worksheet function will count how many dates are in 2009:

=SUMPRODUCT(--(YEAR(A1:A999)=2009))


This array* formula will do the same:

=SUM(IF(YEAR(A1:A999)=2009,1))


This array* formula will count the date years for all the years
indicated. It must be entered into a range of vertical cells (4 high, in
this case) at once:

=FREQUENCY(YEAR(A1:A999),{2007,2008,2009,2010})


*Commit the array formulas by pressing Ctrl+Shift+Enter, not just Enter
or Tab.
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
Deleting entries one year old AOP Excel Discussion (Misc queries) 2 November 12th 07 09:07 PM
Combination Graph with current year and prior year sales JanW Charts and Charting in Excel 2 April 5th 07 09:20 PM
Counting distinct entries based on meeting month & year criteria jennifer Excel Worksheet Functions 3 February 9th 06 01:56 PM
Counting Entries by Month and Year ImaGina Excel Worksheet Functions 1 January 5th 06 06:11 AM
counting date entries by month & year Di Excel Worksheet Functions 7 August 24th 05 08:39 PM


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