Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default Countif year = help needed

Hello, I am new to this forum and appreciate any assistance. I have looked for answers to my problem but am not finding anything. What I want to do seems simple but I can't seem to figure it out and will probably kick myself once I get the assistance. I have a simple spreadsheet to track install dates. All I want is to count how many times each year is represented. The column is in date format 1/1/2005 the range is G1:G175. The actual dates vary through the current year. Thank you in advance!
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by saffron View Post
Hello, I am new to this forum and appreciate any assistance. I have looked for answers to my problem but am not finding anything. What I want to do seems simple but I can't seem to figure it out and will probably kick myself once I get the assistance. I have a simple spreadsheet to track install dates. All I want is to count how many times each year is represented. The column is in date format 1/1/2005 the range is G1:G175. The actual dates vary through the current year. Thank you in advance!
Hi,

Have a look at the attached.

I've included a worksheet with an example for Excel 2003 and one for later versions as they use different formulas, although the 2003 version will work in later versions also.

I've added date cells to give a start date (and end date in the case of 2003).
You could hardcode the dates into the formula, but if you ever need to change the year and recalculate it's easier to change one cell than it is to change formulas.

Hope that's of help.
Let me know if I've misunderstood your requirement.

S.
Attached Files
File Type: zip Saffron Example.zip (4.0 KB, 52 views)
  #3   Report Post  
Junior Member
 
Posts: 3
Smile

Thank you Spencer101,

This worked for me, I really appreciate the assistance!!

Quote:
Originally Posted by Spencer101 View Post
Hi,

Have a look at the attached.

I've included a worksheet with an example for Excel 2003 and one for later versions as they use different formulas, although the 2003 version will work in later versions also.

I've added date cells to give a start date (and end date in the case of 2003).
You could hardcode the dates into the formula, but if you ever need to change the year and recalculate it's easier to change one cell than it is to change formulas.

Hope that's of help.
Let me know if I've misunderstood your requirement.

S.
  #4   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by saffron View Post
Thank you Spencer101,

This worked for me, I really appreciate the assistance!!
Any time. Glad to help :)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default Countif year = help needed

Il 11/09/2012 23:02, saffron ha scritto:
Hello, I am new to this forum and appreciate any assistance. I have
looked for answers to my problem but am not finding anything. What I
want to do seems simple but I can't seem to figure it out and will
probably kick myself once I get the assistance. I have a simple
spreadsheet to track install dates. All I want is to count how many
times each year is represented. The column is in date format 1/1/2005
the range is G1:G175. The actual dates vary through the current year.
Thank you in advance!





Put in H1 year to be tested

In I1:
=SUMPRODUCT(1*(YEAR($G$1:$G$175)=H1))

Hi,
E.


  #6   Report Post  
Junior Member
 
Posts: 3
Wink

I did tried this as well as it seemed simpler but it returned an error. I had to reference different cells but made the appropriate changes. Thanks anyway!



Quote:
Originally Posted by plinius View Post
Il 11/09/2012 23:02, saffron ha scritto:[color=blue][i]
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
COUNTIF, MONTH, YEAR JoeyJoey Excel Discussion (Misc queries) 4 January 25th 10 02:35 PM
Using COUNTIF or SUMPRODUCT for Year PSmith Excel Discussion (Misc queries) 3 November 30th 07 03:59 PM
Countif month & year Saintsman Excel Worksheet Functions 2 April 25th 07 12:54 PM
Countif by Year heater Excel Discussion (Misc queries) 17 September 2nd 05 06:52 PM
countif number of occurences per month per year. Pete Petersen Excel Worksheet Functions 2 January 4th 05 03:47 PM


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