PC Review


Reply
Thread Tools Rate Thread

count cells with year sets in a column?

 
 
=?Utf-8?B?QnJhaW5sZXNzX2luX0Jvc3Rvbg==?=
Guest
Posts: n/a
 
      4th May 2006
Here's my problem - I ahe a short column of dates, different dates sorted
ascending from 2000 to 2006. Different dates. I am seeking (in vain so far) a
formula that will count the dates by last 4 digits, i.e. "2001" and give me
the count.

I tried a bunch of stuff so far with no effing luck. Like:

=COUNTIF(D2271,"*2001")
=SUMPRODUCT(D1271)="*2002" result: FALSE

In the past, I found out (after much research & wastage of temporal
resources) that Excel just won't do some stuff, and I suspect this is one of
those things.

Any suggestions? If you can answer this, I bow to your impressive knowledge!

Mark
aka Brainless (from working on worksheets too much)
 
Reply With Quote
 
 
 
 
Sandy Mann
Guest
Posts: n/a
 
      4th May 2006
Try

=SUMPRODUCT(--(YEAR(D1271)=2006))

--
HTH

Sandy
In Perth, the ancient capital of Scotland

(E-Mail Removed)
(E-Mail Removed) with @tiscali.co.uk


"Brainless_in_Boston" <(E-Mail Removed)> wrote in
message news:9F7C7B6D-5EB4-4200-ACAE-(E-Mail Removed)...
> Here's my problem - I ahe a short column of dates, different dates sorted
> ascending from 2000 to 2006. Different dates. I am seeking (in vain so
> far) a
> formula that will count the dates by last 4 digits, i.e. "2001" and give
> me
> the count.
>
> I tried a bunch of stuff so far with no effing luck. Like:
>
> =COUNTIF(D2271,"*2001")
> =SUMPRODUCT(D1271)="*2002" result: FALSE
>
> In the past, I found out (after much research & wastage of temporal
> resources) that Excel just won't do some stuff, and I suspect this is one
> of
> those things.
>
> Any suggestions? If you can answer this, I bow to your impressive
> knowledge!
>
> Mark
> aka Brainless (from working on worksheets too much)



 
Reply With Quote
 
=?Utf-8?B?QnJhaW5sZXNzX2luX0Jvc3Rvbg==?=
Guest
Posts: n/a
 
      4th May 2006
Danged if you ain't rite!
My hats off to ya!
Yee-ha!

BTW, I know I can use COUNTA & eyeball it, but for bigger applications that
just is too tedious...

Thanks for your help - very much...

Mark

==============================




"Sandy Mann" wrote:

> Try
>
> =SUMPRODUCT(--(YEAR(D1271)=2006))
>
> --
> HTH
>
> Sandy
> In Perth, the ancient capital of Scotland
>
> (E-Mail Removed)
> (E-Mail Removed) with @tiscali.co.uk
>
>
> "Brainless_in_Boston" <(E-Mail Removed)> wrote in
> message news:9F7C7B6D-5EB4-4200-ACAE-(E-Mail Removed)...
> > Here's my problem - I ahe a short column of dates, different dates sorted
> > ascending from 2000 to 2006. Different dates. I am seeking (in vain so
> > far) a
> > formula that will count the dates by last 4 digits, i.e. "2001" and give
> > me
> > the count.
> >
> > I tried a bunch of stuff so far with no effing luck. Like:
> >
> > =COUNTIF(D2271,"*2001")
> > =SUMPRODUCT(D1271)="*2002" result: FALSE
> >
> > In the past, I found out (after much research & wastage of temporal
> > resources) that Excel just won't do some stuff, and I suspect this is one
> > of
> > those things.
> >
> > Any suggestions? If you can answer this, I bow to your impressive
> > knowledge!
> >
> > Mark
> > aka Brainless (from working on worksheets too much)

>
>
>

 
Reply With Quote
 
Sandy Mann
Guest
Posts: n/a
 
      4th May 2006
The problem with searching for 2001 in a date is that it does not exist! In
Excel a date is a just number, for example today is 38841 - it is a count of
the number of days since the start of 1900 - well almost, it would have
been that if 1900 had been a leap year but that's another story. Enter
today's date in a cell and then re-format it as General and you will see.
You therefore have to use the YEAR() function to create the number 2006 from
the *Date* number and use that number.

--
Regards


Sandy
In Perth, the ancient capital of Scotland

(E-Mail Removed)
(E-Mail Removed) with @tiscali.co.uk


"Brainless_in_Boston" <(E-Mail Removed)> wrote in
message news:6EC4DADA-B59E-421E-BD1B-(E-Mail Removed)...
> Danged if you ain't rite!
> My hats off to ya!
> Yee-ha!
>
> BTW, I know I can use COUNTA & eyeball it, but for bigger applications
> that
> just is too tedious...
>
> Thanks for your help - very much...
>
> Mark
>
> ==============================
>
>
>
>
> "Sandy Mann" wrote:
>
>> Try
>>
>> =SUMPRODUCT(--(YEAR(D1271)=2006))
>>
>> --
>> HTH
>>
>> Sandy
>> In Perth, the ancient capital of Scotland
>>
>> (E-Mail Removed)
>> (E-Mail Removed) with @tiscali.co.uk
>>
>>
>> "Brainless_in_Boston" <(E-Mail Removed)> wrote
>> in
>> message news:9F7C7B6D-5EB4-4200-ACAE-(E-Mail Removed)...
>> > Here's my problem - I ahe a short column of dates, different dates
>> > sorted
>> > ascending from 2000 to 2006. Different dates. I am seeking (in vain so
>> > far) a
>> > formula that will count the dates by last 4 digits, i.e. "2001" and
>> > give
>> > me
>> > the count.
>> >
>> > I tried a bunch of stuff so far with no effing luck. Like:
>> >
>> > =COUNTIF(D2271,"*2001")
>> > =SUMPRODUCT(D1271)="*2002" result: FALSE
>> >
>> > In the past, I found out (after much research & wastage of temporal
>> > resources) that Excel just won't do some stuff, and I suspect this is
>> > one
>> > of
>> > those things.
>> >
>> > Any suggestions? If you can answer this, I bow to your impressive
>> > knowledge!
>> >
>> > Mark
>> > aka Brainless (from working on worksheets too much)

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to count#cells w/= value in other column and not count blank c aganoe Microsoft Excel Worksheet Functions 4 9th Apr 2010 11:36 AM
Count cells w/values in column if the data in column a matches cri mdcgpw Microsoft Excel Worksheet Functions 3 11th Jan 2009 09:00 PM
How do I count sets of cells in two columns? David Microsoft Excel Worksheet Functions 2 30th Jul 2008 10:21 PM
Count number of cells and total in one column, based on another column suffix Pierre Microsoft Excel Worksheet Functions 5 31st Oct 2007 12:28 AM
count no. of dates in a column that falls on certain month & year =?Utf-8?B?UmF3U3VnYXI=?= Microsoft Excel Worksheet Functions 2 20th Oct 2005 10:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 AM.