Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Countif with Dynamic date ranges.

I have a worksheet *(sheeta) with a list of activities with "Open" and
"Closed" dates.

In worksheet B, I have A2:A50 I have
A B
1 =TODAY()-7 =COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A1)
2 =TODAY()-14 ={number of occurances between A2 and A1}
3 =TODAY()-21 ={number of occurances between A3 and A2}
4 etc....

In Colum B1, I do a COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A1)

In B2:B50, I want to do =COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A2 AND "<"
&'sheetb'!A1)

THe idea is to found out, by week (each day the start date will change to
TODAY()-7.)
Each day.

Any ideas?

KSL
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Countif with Dynamic date ranges.

B2: =COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A2)-SUM($B$1:$B1)

and copy down


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Leonhardtk" wrote in message
...
I have a worksheet *(sheeta) with a list of activities with "Open" and
"Closed" dates.

In worksheet B, I have A2:A50 I have
A B
1 =TODAY()-7 =COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A1)
2 =TODAY()-14 ={number of occurances between A2 and A1}
3 =TODAY()-21 ={number of occurances between A3 and A2}
4 etc....

In Colum B1, I do a COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A1)

In B2:B50, I want to do =COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A2 AND "<"
&'sheetb'!A1)

THe idea is to found out, by week (each day the start date will change to
TODAY()-7.)
Each day.

Any ideas?

KSL



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Countif with Dynamic date ranges.

Try:

=COUNTIF(sheeta!A1:A50,"=" &sheetb!A2)- COUNTIF(sheeta!A1:A50,"="
&sheetb!A1)

"Leonhardtk" wrote:

I have a worksheet *(sheeta) with a list of activities with "Open" and
"Closed" dates.

In worksheet B, I have A2:A50 I have
A B
1 =TODAY()-7 =COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A1)
2 =TODAY()-14 ={number of occurances between A2 and A1}
3 =TODAY()-21 ={number of occurances between A3 and A2}
4 etc....

In Colum B1, I do a COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A1)

In B2:B50, I want to do =COUNTIF('sheeta'!A1:A50,"=" &'sheetb'!A2 AND "<"
&'sheetb'!A1)

THe idea is to found out, by week (each day the start date will change to
TODAY()-7.)
Each day.

Any ideas?

KSL

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
Dynamic Ranges with ADO longlv Excel Discussion (Misc queries) 0 March 15th 06 02:14 AM
Dynamic Ranges JackR Excel Discussion (Misc queries) 2 February 23rd 06 06:25 PM
Dynamic Date Ranges jc94321 Excel Discussion (Misc queries) 0 September 14th 05 11:28 PM
COUNTIF criteria using date ranges? Annie Excel Worksheet Functions 3 August 26th 05 07:25 PM
Dynamic Formulas with Dynamic Ranges Ralph Howarth Excel Worksheet Functions 5 January 21st 05 08:44 AM


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