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

A

AlanN

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
 
R

Roger Govier

Hi Alan

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

--
Regards
Roger Govier
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
 
P

Paul

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()))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top