LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Count certain records between dates

Glad it worked for you.

Heliocracy wrote:

You're a genius. Thanks.

"Dave Peterson" wrote:

Because excel won't let you <bg.

But you could stop looking where you want:

=SUMPRODUCT(--(TEXT(A2:A100,"yyyymm")="200610"),--(left(O2:O100,5)="Maint"))

or if "maint" could be anywhere in that cell:
=SUMPRODUCT(--(TEXT(A2:A100,"yyyymm")="200610"),
--(ISNUMBER(SEARCH("maintenance",O2:O100))))

=search() doesn't care about case.
=Find() is case sensitive.




Heliocracy wrote:

Thanks to you both, this appears to produce the correct answer. Why can't I
use a wildcard in the "Maintenance" to allow for misspelling or spaces after
the end of the word? Thanks

"Dave Peterson" wrote:

It may be easier to use the month number (mm) instead of month name (mmmm).
It'll be easier to avoid typos <vbg.

=SUMPRODUCT(--(TEXT(A2:A100,"yyyymm")="200610"),--(O2:O100="Maintenance"))



Teethless mama wrote:

=SUMPRODUCT(--(TEXT(A2:A100,"mmmm yyyy")="Octobober
2006"),--(O2:O100="Maintenance"))

"Heliocracy" wrote:

For each record, Column B is a date and Column O is either "Maintenance" or
"Routine." How do I count the number of "Maintenance" records whose dates
fall within a specific month--ex: count number of records that are dated
anytime in October 2006 (in column B) AND have the word "Maintenance" (in
column O)?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
 
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
count of different type records Gábor Excel Worksheet Functions 2 September 28th 06 03:45 PM
Number of records between dates flow23 Excel Discussion (Misc queries) 1 May 11th 06 11:41 AM
Count Records Between A-K and L-Z Leslie Excel Worksheet Functions 3 April 18th 06 03:25 PM
Get count of records for a particular month and year maxtrixx Excel Discussion (Misc queries) 5 April 8th 05 07:39 PM
count the no.of records between two dates Sachin Pawar Excel Worksheet Functions 2 October 30th 04 01:19 PM


All times are GMT +1. The time now is 02:52 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"