#1   Report Post  
Posted to microsoft.public.excel.misc
Becks
 
Posts: n/a
Default Counting with Excel

I want to count the number of times a name appears in one column, if the date
in another column falls in a certain period. For instance: Count If A1:A5=B
OP and the date in B1:B5 is between 01/04/05 & 17/04/05.
ColA ColB
B OP 15/04/05
B LD 15/04/05
B OP 13/04/05
B OP 18/04/05
B PD 13/04/05 with the answer being 2!

The way the sheet is set up will not work in a pivot table (I don't think)
and i don't want to alter it. I've tried someproduct but can't get it to
work, i'm either writing it wrong or using the wrong formula. PLEASE HELP!!!!!

Thanks

Becks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Counting with Excel

=SUMPRODUCT(--(A1:A5="B"),--(B1:B5=DATE(2005,4,1)),--(B1:B5<=DATE(2005,4,17
)))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Becks" wrote in message
...
I want to count the number of times a name appears in one column, if the

date
in another column falls in a certain period. For instance: Count If

A1:A5=B
OP and the date in B1:B5 is between 01/04/05 & 17/04/05.
ColA ColB
B OP 15/04/05
B LD 15/04/05
B OP 13/04/05
B OP 18/04/05
B PD 13/04/05 with the answer being 2!

The way the sheet is set up will not work in a pivot table (I don't think)
and i don't want to alter it. I've tried someproduct but can't get it to
work, i'm either writing it wrong or using the wrong formula. PLEASE

HELP!!!!!

Thanks

Becks



  #3   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Counting with Excel


Try:

=SUMPRODUCT((A1:A5="B")*(B1:B5="op")*(C1:C5=D1)*( C1:C5<=D2))

where D1 is 01/04/05
and D2 is 17/04/05

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=498253

  #4   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Counting with Excel


Ooops...misread your post:

=SUMPRODUCT((A1:A5="B OP")*(C1:C5=D1)*( C1:C5<=D2))

Regards
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=498253

  #5   Report Post  
Posted to microsoft.public.excel.misc
Becks
 
Posts: n/a
Default Counting with Excel

Oh Excellent! Thank you very much!

"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A5="B"),--(B1:B5=DATE(2005,4,1)),--(B1:B5<=DATE(2005,4,17
)))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Becks" wrote in message
...
I want to count the number of times a name appears in one column, if the

date
in another column falls in a certain period. For instance: Count If

A1:A5=B
OP and the date in B1:B5 is between 01/04/05 & 17/04/05.
ColA ColB
B OP 15/04/05
B LD 15/04/05
B OP 13/04/05
B OP 18/04/05
B PD 13/04/05 with the answer being 2!

The way the sheet is set up will not work in a pivot table (I don't think)
and i don't want to alter it. I've tried someproduct but can't get it to
work, i'm either writing it wrong or using the wrong formula. PLEASE

HELP!!!!!

Thanks

Becks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
unhide menu bar in excel - just disappeared Sean Setting up and Configuration of Excel 12 April 4th 23 10:19 AM
convert pocket excel back to standard excel kevroyal Excel Discussion (Misc queries) 1 February 16th 06 11:35 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
conditional counting with Excel LeicaElmar Excel Worksheet Functions 1 October 17th 05 10:23 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"