Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default counting cells that contain a date

In column A I have a list of fruit ie apples and oranges and in column B I
have a list of dates ie 11/8/08, 12/8/08 etc but Col B also contains text
entries such as "sold out" and "not required". Can anyone please give me a
formula that will count the number of times Apple appears in colum A only
when there is a date in column B. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default counting cells that contain a date

Hi,

providing there are only dates and text in column B then this should do it.

=SUMPRODUCT((A1:A20="Apple")*(ISNUMBER(B1:B20)))

Mike

"jimar" wrote:

In column A I have a list of fruit ie apples and oranges and in column B I
have a list of dates ie 11/8/08, 12/8/08 etc but Col B also contains text
entries such as "sold out" and "not required". Can anyone please give me a
formula that will count the number of times Apple appears in colum A only
when there is a date in column B. Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default counting cells that contain a date

Thanks Mike. Works great.

"Mike H" wrote:

Hi,

providing there are only dates and text in column B then this should do it.

=SUMPRODUCT((A1:A20="Apple")*(ISNUMBER(B1:B20)))

Mike

"jimar" wrote:

In column A I have a list of fruit ie apples and oranges and in column B I
have a list of dates ie 11/8/08, 12/8/08 etc but Col B also contains text
entries such as "sold out" and "not required". Can anyone please give me a
formula that will count the number of times Apple appears in colum A only
when there is a date in column B. Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default counting cells that contain a date

Glad I could help


"jimar" wrote:

Thanks Mike. Works great.

"Mike H" wrote:

Hi,

providing there are only dates and text in column B then this should do it.

=SUMPRODUCT((A1:A20="Apple")*(ISNUMBER(B1:B20)))

Mike

"jimar" wrote:

In column A I have a list of fruit ie apples and oranges and in column B I
have a list of dates ie 11/8/08, 12/8/08 etc but Col B also contains text
entries such as "sold out" and "not required". Can anyone please give me a
formula that will count the number of times Apple appears in colum A only
when there is a date in column B. Thanks

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
counting cells associated by year and date. mebsmith Excel Discussion (Misc queries) 2 August 27th 08 06:35 PM
counting cells that fall within a certain date range MR. NICE Excel Discussion (Misc queries) 9 July 16th 08 06:15 PM
Counting non-zero cells based on date Rochelle Excel Discussion (Misc queries) 2 March 20th 07 04:15 PM
Counting Cells with certain date ranges as values audreyglennette Excel Worksheet Functions 12 May 4th 06 12:21 AM
Counting date cells... Dave Schwinger Excel Worksheet Functions 2 August 10th 05 06:54 PM


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

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

About Us

"It's about Microsoft Excel"