Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 62
Default product between two dates and with criteria

I've been trawling the messages for a couple of hours now and am getting more
and more confused (it's my age)

I have column A with various dates
Column B has the status "open" or Closed"
I need to count how many new rows were added for each 7 day week. So all the
occurrances of anything between two dates which I have done using
=COUNTIF(range,""&A2)-COUNTIF(range,""&A3) Thanks guys!

but then I need to count the number in each 7 day week that are still open
and then I need to report which date has the oldest "open" item.

Please help

Stu
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default product between two dates and with criteria

=SUMPRODUCT(--(date=A2),--(date<=A3),--(status="open"))

Adjust to suit


"Stuart" wrote:

I've been trawling the messages for a couple of hours now and am getting more
and more confused (it's my age)

I have column A with various dates
Column B has the status "open" or Closed"
I need to count how many new rows were added for each 7 day week. So all the
occurrances of anything between two dates which I have done using
=COUNTIF(range,""&A2)-COUNTIF(range,""&A3) Thanks guys!

but then I need to count the number in each 7 day week that are still open
and then I need to report which date has the oldest "open" item.

Please help

Stu

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 62
Default product between two dates and with criteria


Top quality answer thank you so much.

Two points firstly including = and <= counts things occurring at the
changeover day twice. so deleting one = does the trick.

also I need to look down the two columns a and b and find the earliest
ocurrence of "open" in column b based on the date of col a.


does that make sense ?



Stu


"Teethless mama" wrote:

=SUMPRODUCT(--(date=A2),--(date<=A3),--(status="open"))

Adjust to suit


"Stuart" wrote:

I've been trawling the messages for a couple of hours now and am getting more
and more confused (it's my age)

I have column A with various dates
Column B has the status "open" or Closed"
I need to count how many new rows were added for each 7 day week. So all the
occurrances of anything between two dates which I have done using
=COUNTIF(range,""&A2)-COUNTIF(range,""&A3) Thanks guys!

but then I need to count the number in each 7 day week that are still open
and then I need to report which date has the oldest "open" item.

Please help

Stu

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default product between two dates and with criteria

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MIN(IF(B1:B100="open",A1:A100))

Format as DATE

Biff

"Stuart" wrote in message
...

Top quality answer thank you so much.

Two points firstly including = and <= counts things occurring at the
changeover day twice. so deleting one = does the trick.

also I need to look down the two columns a and b and find the earliest
ocurrence of "open" in column b based on the date of col a.


does that make sense ?



Stu


"Teethless mama" wrote:

=SUMPRODUCT(--(date=A2),--(date<=A3),--(status="open"))

Adjust to suit


"Stuart" wrote:

I've been trawling the messages for a couple of hours now and am
getting more
and more confused (it's my age)

I have column A with various dates
Column B has the status "open" or Closed"
I need to count how many new rows were added for each 7 day week. So
all the
occurrances of anything between two dates which I have done using
=COUNTIF(range,""&A2)-COUNTIF(range,""&A3) Thanks guys!

but then I need to count the number in each 7 day week that are still
open
and then I need to report which date has the oldest "open" item.

Please help

Stu



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 62
Default product between two dates and with criteria


You are all Gods and your childrens children will have many fine offspring


Respect


Stu



"T. Valko" wrote:

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MIN(IF(B1:B100="open",A1:A100))

Format as DATE

Biff

"Stuart" wrote in message
...

Top quality answer thank you so much.

Two points firstly including = and <= counts things occurring at the
changeover day twice. so deleting one = does the trick.

also I need to look down the two columns a and b and find the earliest
ocurrence of "open" in column b based on the date of col a.


does that make sense ?



Stu


"Teethless mama" wrote:

=SUMPRODUCT(--(date=A2),--(date<=A3),--(status="open"))

Adjust to suit


"Stuart" wrote:

I've been trawling the messages for a couple of hours now and am
getting more
and more confused (it's my age)

I have column A with various dates
Column B has the status "open" or Closed"
I need to count how many new rows were added for each 7 day week. So
all the
occurrances of anything between two dates which I have done using
=COUNTIF(range,""&A2)-COUNTIF(range,""&A3) Thanks guys!

but then I need to count the number in each 7 day week that are still
open
and then I need to report which date has the oldest "open" item.

Please help

Stu




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
SUMIF/PRODUCT & DATES Sarini Excel Worksheet Functions 2 January 31st 07 05:34 PM
SUMIF/PRODUCT with multiple Criteria not working Andi Excel Discussion (Misc queries) 4 January 22nd 07 06:01 PM
SUMPRODUCT, two criteria (date and product type) Bryce Excel Worksheet Functions 3 December 24th 06 04:14 AM
Product of 2 arrays based on criteria Ben010 Excel Discussion (Misc queries) 4 March 20th 06 07:50 PM
how to sum using dates as a criteria Lius Excel Worksheet Functions 8 December 2nd 04 11:11 AM


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

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"