Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Count cells with specific text between two dates?

I have the following formula
=COUNTIF(Orders!D:D,"*Stood Down*")

How do I modify it to count text between two dates which are in cells:
Orders! H3
Orders! I3
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Count cells with specific text between two dates?

Hi,

You told us where the date criteria are but not where the dates are on the
worksheet so I have assumed ORDERS!C:C

In additiona, unless you have to cut backk the range from full columns to
something more closely matching your dataset

=SUMPRODUCT((Orders!C:C=H3)*(Orders!C:C<=I3)*(ISN UMBER(SEARCH("stood
down",Orders!D:D))))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"hoyos" wrote:

I have the following formula
=COUNTIF(Orders!D:D,"*Stood Down*")

How do I modify it to count text between two dates which are in cells:
Orders! H3
Orders! I3

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Count cells with specific text between two dates?

With dates in ColA try the below

=SUMPRODUCT((Orders!A1:A100=Orders!H3)*
(Orders!A1:A100<=Orders!I3)*
(ISNUMBER(SEARCH("stood down",Orders!D1:D100))))

--
Jacob


"hoyos" wrote:

I have the following formula
=COUNTIF(Orders!D:D,"*Stood Down*")

How do I modify it to count text between two dates which are in cells:
Orders! H3
Orders! I3

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Count cells with specific text between two dates?

Hmmm,

I meant to say

In addition, unless you have to use full columns cut back the range from
full columns to something more closely matching your dataset
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Mike H" wrote:

Hi,

You told us where the date criteria are but not where the dates are on the
worksheet so I have assumed ORDERS!C:C

In additiona, unless you have to cut backk the range from full columns to
something more closely matching your dataset

=SUMPRODUCT((Orders!C:C=H3)*(Orders!C:C<=I3)*(ISN UMBER(SEARCH("stood
down",Orders!D:D))))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"hoyos" wrote:

I have the following formula
=COUNTIF(Orders!D:D,"*Stood Down*")

How do I modify it to count text between two dates which are in cells:
Orders! H3
Orders! I3

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Count cells with specific text between two dates?

COUNTIF only works with one condition. You can use SUMPRODUCT instead
for multiple conditions, though you can't use full-column references
unless you have XL2007 or later. What column do you use for your
dates?

Pete

On Jan 28, 10:40*am, hoyos wrote:
I have the following formula
=COUNTIF(Orders!D:D,"*Stood Down*")

How do I modify it to count text between two dates which are in cells:
Orders! H3
Orders! I3




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Count cells with specific text between two dates?

Thank you all for replying. You all do a great job......fantastic site.
The formula works well. Just the job!
Thank you

"Pete_UK" wrote:

COUNTIF only works with one condition. You can use SUMPRODUCT instead
for multiple conditions, though you can't use full-column references
unless you have XL2007 or later. What column do you use for your
dates?

Pete

On Jan 28, 10:40 am, hoyos wrote:
I have the following formula
=COUNTIF(Orders!D:D,"*Stood Down*")

How do I modify it to count text between two dates which are in cells:
Orders! H3
Orders! I3


.

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 Cells where text may contain a specific word Vic Excel Discussion (Misc queries) 5 June 26th 09 04:20 PM
I need to count and / or sum cells with specific text colours. Hel J. Excel Discussion (Misc queries) 3 July 14th 08 03:47 PM
Count cells containing specific text dandiehl Excel Discussion (Misc queries) 4 August 21st 07 08:34 PM
count cells that begin with specific text mmer at steelcase Excel Worksheet Functions 7 July 25th 06 10:03 PM
If two cells have specific text to count as 1 Jazzman10 Excel Worksheet Functions 4 June 26th 06 06:09 PM


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