Notices
The Basement Non-Honda/Acura discussion. Content should be tasteful and "primetime" safe.

Excel Peeps...

Thread Tools
 
Old Aug 23, 2005 | 06:37 AM
  #1  
Tark's Avatar
Tark
Thread Starter
Senior Member
 
Joined: Jun 2004
Posts: 30,331
Likes: 0
From: Montréal, Canada
Default Excel Peeps...

in a spreadsheet there is this column with dates of started membership. these date start from 2001 to 2005 different dates but no set intervals. The spread sheet in a sheet of member of a club, i need to get the amount of new member for each year in a different cell. aby help? is this even clear?!
Reply
Old Aug 23, 2005 | 06:39 AM
  #2  
XScarAudio's Avatar
XScarAudio
///o\\\///o\\\
 
Joined: May 2002
Posts: 8,550
Likes: 0
From: Tampa
Default

like you need to sort it by year? if so Data>Sort > select "has header row" sort by that column
Reply
Old Aug 23, 2005 | 07:02 AM
  #3  
Misa's Avatar
Misa
Pic Whore
 
Joined: Jul 2004
Posts: 22,224
Likes: 1
From: NJ
Default

try this.....




type this
=SUM(IF(YEAR(RANGEofDATES)=YEAR,1,0))

then hit Control+Shift+Enter

example

{=SUM(IF(YEAR(B3:B20)=2004,1,0))}

the Control+Shift=Enter will add { } around the formula... dont try to manually type them in
Reply
Old Aug 23, 2005 | 07:31 AM
  #4  
jclau00's Avatar
jclau00
Senior Member
 
Joined: Sep 2002
Posts: 1,104
Likes: 0
From: bay area, cali
Default

very clever use of arrays :thumbup:
Reply
Old Aug 23, 2005 | 07:36 AM
  #5  
Nelson's Avatar
Nelson
Administrator
 
Joined: Jul 2002
Posts: 56,734
Likes: 3
From: NY
Default

What I would do is:
Format the date column to display the date in MM/DD/YYYY format.
Then on a separate column, use the function "RIGHT" and set the value to 4 (this will strip the 4 right most numbers).

You should then have a column of just years. I would then use the function "COUNT" to get a total for each year.
__________________
9Y0 Cayenne GTS
E46 ///M3
YD4 MDX
- SOLD
EG Ferio - SOLD

FA Ferio - Returned
www.NelsonLee.net



Reply
Old Aug 23, 2005 | 07:39 AM
  #6  
e3NiNe's Avatar
e3NiNe
#CustomUserTitle
 
Joined: Mar 2002
Posts: 63,855
Likes: 1
From: glass case of emotion
Default

Originally Posted by Nelson
What I would do is:
Format the date column to display the date in MM/DD/YYYY format.
Then on a separate column, use the function "RIGHT" and set the value to 4 (this will strip the 4 right most numbers).

You should then have a column of just years. I would then use the function "COUNT" to get a total for each year.
that is a very good idea ... let's see ... brb.
Reply
Old Aug 23, 2005 | 08:37 AM
  #7  
Tark's Avatar
Tark
Thread Starter
Senior Member
 
Joined: Jun 2004
Posts: 30,331
Likes: 0
From: Montréal, Canada
Default

Originally Posted by Nelson
What I would do is:
Format the date column to display the date in MM/DD/YYYY format.
Then on a separate column, use the function "RIGHT" and set the value to 4 (this will strip the 4 right most numbers).

You should then have a column of just years. I would then use the function "COUNT" to get a total for each year.
For some reason it doesnt work! when i do that it gives me a number such as 6804. Now the date are formated in a 2004/10/05 format and tried both right and left function and it gives me
left;3680
right;6804
I dont get it! h:
Reply
Old Aug 23, 2005 | 08:38 AM
  #8  
Tark's Avatar
Tark
Thread Starter
Senior Member
 
Joined: Jun 2004
Posts: 30,331
Likes: 0
From: Montréal, Canada
Default

Originally Posted by janiVI
try this.....




type this
=SUM(IF(YEAR(RANGEofDATES)=YEAR,1,0))

then hit Control+Shift+Enter

example

{=SUM(IF(YEAR(B3:B20)=2004,1,0))}

the Control+Shift=Enter will add { } around the formula... dont try to manually type them in
I am guessing for this to work i would need a additionnal colum consisted of only years but in the spread sheet it is in a 2004/01/01 format and i cant really change that.
Reply
Old Aug 23, 2005 | 08:42 AM
  #9  
Misa's Avatar
Misa
Pic Whore
 
Joined: Jul 2004
Posts: 22,224
Likes: 1
From: NJ
Default

Originally Posted by Tark
I am guessing for this to work i would need a additionnal colum consisted of only years but in the spread sheet it is in a 2004/01/01 format and i cant really change that.
you dont...

the year function YEAR() extracts the year from the whole date
Reply
Old Aug 23, 2005 | 09:13 AM
  #10  
Tark's Avatar
Tark
Thread Starter
Senior Member
 
Joined: Jun 2004
Posts: 30,331
Likes: 0
From: Montréal, Canada
Default

Originally Posted by janiVI
you dont...

the year function YEAR() extracts the year from the whole date
I LOVE YOU h: it worked... only thing was the language cause i am working with a french Ver.

Meyb one more question how do you use the count function? cause in a different column their is the kind of memebership. So platnum, gold, silver bronze. I would like a cell to give me amount of platnium. other cell for gold, other for.... you know what i mean.
Reply



All times are GMT -8. The time now is 08:14 PM.