Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Janet BN
 
Posts: n/a
Default Count text values in a date range

Hi,
Can someone help me - I need to count the amount of instances of a text
value within a date range. I have date columns and text columns in a table
(the data is extracted from MS-Project).

eg. I am trying to count how many times "poured slab" happened in the past
week.

I have tried several things, no luck!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Count text values in a date range

=SUMPRODUCT(--(A2:A500=TODAY()-7),--(B2:B500="poured slab"))

where A holds the dates and B text, if the text is part of a larger text
string use

=SUMPRODUCT(--(A2:A500=TODAY()-7),--(ISNUMBER(SEARCH("poured
slab",B2:B500))))


Regards,


Peo Sjoblom


"Janet BN" wrote:

Hi,
Can someone help me - I need to count the amount of instances of a text
value within a date range. I have date columns and text columns in a table
(the data is extracted from MS-Project).

eg. I am trying to count how many times "poured slab" happened in the past
week.

I have tried several things, no luck!

  #3   Report Post  
Posted to microsoft.public.excel.misc
Janet BN
 
Posts: n/a
Default Count text values in a date range

Thanks for that Peo, but it is only returning a 0 value as the result and I
know for a fact there are 4 instances.

I am using this to lookup on another page, will that cause a problem. (see
my equation) Or is there a line limit for this sort of checking. I tried
both your examples and got the same result.

=SUMPRODUCT(--('Input Data'!$S2:$S8500=TODAY()-7),--('Input
Data'!D2:D8500="4,000"))

Any help appreciated.

ps.. It has taken some time to get back to this issue.


"Peo Sjoblom" wrote:

=SUMPRODUCT(--(A2:A500=TODAY()-7),--(B2:B500="poured slab"))

where A holds the dates and B text, if the text is part of a larger text
string use

=SUMPRODUCT(--(A2:A500=TODAY()-7),--(ISNUMBER(SEARCH("poured
slab",B2:B500))))


Regards,


Peo Sjoblom


"Janet BN" wrote:

Hi,
Can someone help me - I need to count the amount of instances of a text
value within a date range. I have date columns and text columns in a table
(the data is extracted from MS-Project).

eg. I am trying to count how many times "poured slab" happened in the past
week.

I have tried several things, no luck!

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
count by specific text color in range of cell Tii99 Excel Discussion (Misc queries) 2 April 4th 06 09:58 AM
using =COUNTIF to count two text values John in Surrey Excel Worksheet Functions 1 October 25th 05 07:05 PM
Count cells based on date range in another column [email protected] New Users to Excel 1 May 5th 05 08:11 PM
Counting values within a Date Range Jana Excel Discussion (Misc queries) 7 December 9th 04 10:18 PM
I have a list of dates that I need to count based on a date range ejb030353 Excel Worksheet Functions 4 November 24th 04 02:27 PM


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