A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

countifs Text and Dates



 
 
Thread Tools Display Modes
  #1  
Old September 4th, 2008, 03:08 AM posted to microsoft.public.excel.worksheet.functions
mokihi
external usenet poster
 
Posts: 5
Default countifs Text and Dates

Hi there

I want to count how many "Level 1" cells that are older than "3/9/08". My
columns and rows look like this:

A B
Level 1 03/09/08
Level 2 04/11/07
Level 1 01/02/07
Level 1 31/03/08
Level 2 14/04/08
Level 4 16/09/06
Level 4 16/09/06

Can someone please give me the COUNTIF or SUMPRODUCT formula to calculate
this. I don't have 2007 so COUNTIFS aren't an option for me. I have read
through the other listings but can't seem to pinpoint a formula that works.

Thanks
  #2  
Old September 4th, 2008, 03:27 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default countifs Text and Dates

Assuming real dates in col B
One way, in say, C1:
=SUMPRODUCT((A1:A7="Level 1")*(B1:B7 --"3 Sep 2008"))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"mokihi" wrote:
I want to count how many "Level 1" cells that are older than "3/9/08". My
columns and rows look like this:

A B
Level 1 03/09/08
Level 2 04/11/07
Level 1 01/02/07
Level 1 31/03/08
Level 2 14/04/08
Level 4 16/09/06
Level 4 16/09/06

Can someone please give me the COUNTIF or SUMPRODUCT formula to calculate
this. I don't have 2007 so COUNTIFS aren't an option for me. I have read
through the other listings but can't seem to pinpoint a formula that works.

Thanks

  #3  
Old September 4th, 2008, 03:33 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default countifs Text and Dates

Try this:

=SUMPRODUCT(--(A1:A10="level 1"),--(B1:B10DATE(2008,9,3)))

Better to use cells to hold the criteria:

D1 = level 1
E1 = 3/9/2008

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10E1))

--
Biff
Microsoft Excel MVP


"mokihi" wrote in message
...
Hi there

I want to count how many "Level 1" cells that are older than "3/9/08". My
columns and rows look like this:

A B
Level 1 03/09/08
Level 2 04/11/07
Level 1 01/02/07
Level 1 31/03/08
Level 2 14/04/08
Level 4 16/09/06
Level 4 16/09/06

Can someone please give me the COUNTIF or SUMPRODUCT formula to calculate
this. I don't have 2007 so COUNTIFS aren't an option for me. I have read
through the other listings but can't seem to pinpoint a formula that
works.

Thanks



  #4  
Old September 4th, 2008, 04:01 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default countifs Text and Dates

I interp'd OP's spec: .. older than "3/9/08"
as meaning: dates earlier than or before "3/9/08"
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700, Files:359, Subscribers:55
xdemechanik
---


  #5  
Old September 4th, 2008, 04:07 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default countifs Text and Dates

Yeah, you're probably right.

--
Biff
Microsoft Excel MVP


"Max" wrote in message
...
I interp'd OP's spec: .. older than "3/9/08"
as meaning: dates earlier than or before "3/9/08"
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700, Files:359, Subscribers:55
xdemechanik
---



  #6  
Old September 4th, 2008, 04:12 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default countifs Text and Dates

older than "3/9/08".

If "older" means before or earlier than 3/9/2008, then change to these:

=SUMPRODUCT(--(A1:A10="level 1"),--(B1:B10DATE(2008,9,3)))

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10E1))


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=SUMPRODUCT(--(A1:A10="level 1"),--(B1:B10DATE(2008,9,3)))

Better to use cells to hold the criteria:

D1 = level 1
E1 = 3/9/2008

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10E1))

--
Biff
Microsoft Excel MVP


"mokihi" wrote in message
...
Hi there

I want to count how many "Level 1" cells that are older than "3/9/08". My
columns and rows look like this:

A B
Level 1 03/09/08
Level 2 04/11/07
Level 1 01/02/07
Level 1 31/03/08
Level 2 14/04/08
Level 4 16/09/06
Level 4 16/09/06

Can someone please give me the COUNTIF or SUMPRODUCT formula to calculate
this. I don't have 2007 so COUNTIFS aren't an option for me. I have read
through the other listings but can't seem to pinpoint a formula that
works.

Thanks





  #7  
Old September 4th, 2008, 04:57 AM posted to microsoft.public.excel.worksheet.functions
mokihi
external usenet poster
 
Posts: 5
Default Thanks

Thanks so much - you guys are magic - my headache has finally gone!

"mokihi" wrote:

Hi there

I want to count how many "Level 1" cells that are older than "3/9/08". My
columns and rows look like this:

A B
Level 1 03/09/08
Level 2 04/11/07
Level 1 01/02/07
Level 1 31/03/08
Level 2 14/04/08
Level 4 16/09/06
Level 4 16/09/06

Can someone please give me the COUNTIF or SUMPRODUCT formula to calculate
this. I don't have 2007 so COUNTIFS aren't an option for me. I have read
through the other listings but can't seem to pinpoint a formula that works.

Thanks

  #8  
Old September 4th, 2008, 05:30 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Thanks

Welcome. Take a moment to press the "Yes" buttons (like the ones below) in
the 2 responses which answered your query
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700, Files:359, Subscribers:55
xdemechanik
---
"mokihi" wrote in message
...
Thanks so much - you guys are magic - my headache has finally gone!



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.