#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dean
 
Posts: n/a
Default Counting again

I would like to count the number of times an item appears in a list but
between a set criteria.
Two columns, 1 is a date and the other contains text "Major", Minor" and
"Warranty". I want a count of each for a entered time period.
The user can enter the start and End dates in 2 cells and a fomular will
work out howmany "Major"s appear in the list, in that date range.

Can you help please
Thanks
Dean
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RagDyeR
 
Posts: n/a
Default Counting again

How about making the user enter 3 criteria,
C1 = start date
C2 = end date
C3 = "Text" to count (Major, Minor, Warranty)

Dates in Column A,
Text in Column B,

And try this:

=SUMPRODUCT((A1:A100=C1)*(A1:A100<=C2)*(B1:B100=C 3))

You can of course, simply replace C3 with "Warranty", if that will *always*
be the item to count.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Dean" wrote in message
...
I would like to count the number of times an item appears in a list but
between a set criteria.
Two columns, 1 is a date and the other contains text "Major", Minor" and
"Warranty". I want a count of each for a entered time period.
The user can enter the start and End dates in 2 cells and a fomular will
work out howmany "Major"s appear in the list, in that date range.

Can you help please
Thanks
Dean


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jonathanrachel
 
Posts: n/a
Default Counting again


=SUMPRODUCT(($A$1:$A$31=F2)*($A$1:$A$31<=G2)*($B$ 1:$B$31="Warranty"))

Where F2 is your beginning date, G2 is your ending date, A1:A31 is your
date range, B1:B31 is your text range


--
jonathanrachel
------------------------------------------------------------------------
jonathanrachel's Profile: http://www.msusenet.com/member.php?userid=6529
View this thread: http://www.msusenet.com/t-1873681899

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
conditional counting with Excel LeicaElmar Excel Worksheet Functions 1 October 17th 05 10:23 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM
Counting... Patrick G Excel Worksheet Functions 3 February 23rd 05 10:05 PM
counting entries between two dates? Todd Excel Worksheet Functions 7 November 1st 04 11:07 PM


All times are GMT +1. The time now is 07:20 AM.

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"