PC Review


Reply
Thread Tools Rate Thread

A calculation to count all cells ='D' where the offset cells in range have dates <= todays date

 
 
AlanN
Guest
Posts: n/a
 
      29th Jan 2004
I am working on a scheduling system in Excel 2002.

In cells A12: A376 I have the dates from 1/1/2004 > 12/31/2004 and in column B12:B376 the characters can be "D", "E" or "N" (day, evening, night).
I want to put a calculation in cell B8 that counts the # of "D"s in the range B12:B376 where the corresponding date in column A is <= the current date (=now()).

Can anyone help me?

TIA, AlanN

 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      29th Jan 2004
Hi Alan

Try
=SUMPRODUCT(--(B12:B376="D")*(A12:A376<=Today()))

--
Regards
Roger Govier
"AlanN" <(E-Mail Removed)> wrote in message news:8G9Sb.57439$(E-Mail Removed)...
I am working on a scheduling system in Excel 2002.

In cells A12: A376 I have the dates from 1/1/2004 > 12/31/2004 and in column B12:B376 the characters can be "D", "E" or "N" (day, evening, night).
I want to put a calculation in cell B8 that counts the # of "D"s in the range B12:B376 where the corresponding date in column A is <= the current date (=now()).

Can anyone help me?

TIA, AlanN

 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      29th Jan 2004
"AlanN" <(E-Mail Removed)> wrote in message
news:8G9Sb.57439$(E-Mail Removed)...
I am working on a scheduling system in Excel 2002.

In cells A12: A376 I have the dates from 1/1/2004 > 12/31/2004 and in
column B12:B376 the characters can be "D", "E" or "N" (day, evening, night).
I want to put a calculation in cell B8 that counts the # of "D"s in the
range B12:B376 where the corresponding date in column A is <= the current
date (=now()).

Can anyone help me?

TIA, AlanN


=SUMPRODUCT((B12:B376="D")*(A12: A376<=TODAY()))


 
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
Count Unique Cells, within a date range (dates stored in separatecolumn). Matt Microsoft Excel Discussion 3 15th Jul 2010 09:59 AM
Sum a range of cells starting from an offset date list from TODAY() jeff.taylor@virgin.net Microsoft Excel Worksheet Functions 3 5th Nov 2006 12:19 PM
Count cells within a date range =?Utf-8?B?RGV3YXluZQ==?= Microsoft Excel Misc 7 20th Aug 2006 04:40 AM
Problem with Range.Cells.Offset and Range.Cells( row + offset, column) erazmus@actrix.co.nz Microsoft Excel Programming 1 22nd Aug 2005 03:31 AM
Count number of cells that fall within a range of dates mmay321 Microsoft Excel Discussion 3 8th Aug 2005 10:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:58 AM.