Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Counif Between Date Ranges

Hey guys,

I'm creating a sheet to basically track downtime within a certain production
Cell, at the moment i have used mainly countif statements as well as
Sumproduct to tally up the minutes when 2 conditions are true. for example
the cell is BA and the operation is a setup, repair etc.

Now i need to narrow it down to downtime in a specific week, how would i
enter a sumproduct and counif to run between certain dates ?

Example of the sheet data would be ..

Date Cell Operation mins
01/10/2007 BA Setup 50
03/10/2007 Filters Repair 30

Any help would be greatly appreciated ...

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Counif Between Date Ranges

Hi,

maybe:-

=SUMPRODUCT((A1:A3E1)*(D1:D3))-(SUMPRODUCT((A1:A3E2)*(D1:D3)))

With E1 & E2 being the 2 dates you want to sum between.

Mike

"Karma2400" wrote:

Hey guys,

I'm creating a sheet to basically track downtime within a certain production
Cell, at the moment i have used mainly countif statements as well as
Sumproduct to tally up the minutes when 2 conditions are true. for example
the cell is BA and the operation is a setup, repair etc.

Now i need to narrow it down to downtime in a specific week, how would i
enter a sumproduct and counif to run between certain dates ?

Example of the sheet data would be ..

Date Cell Operation mins
01/10/2007 BA Setup 50
03/10/2007 Filters Repair 30

Any help would be greatly appreciated ...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Counif Between Date Ranges

Or
=SUMPRODUCT((A1:A3E1)*(A1:A3<E2)*(D1:D3))

You can add extra conditions as required, such as
=SUMPRODUCT((A1:A3E1)*(A1:A3<E2)*(A1:A3="Filters" )*(D1:D3))

Also, if you have ONLY conditions, you get the equivalent of COUNTIF:
=SUMPRODUCT((A1:A3E1)*(A1:A3<E2)*(A1:A3="Filters" ))

Stephen


"Mike H" wrote in message
...
Hi,

maybe:-

=SUMPRODUCT((A1:A3E1)*(D1:D3))-(SUMPRODUCT((A1:A3E2)*(D1:D3)))

With E1 & E2 being the 2 dates you want to sum between.

Mike

"Karma2400" wrote:

Hey guys,

I'm creating a sheet to basically track downtime within a certain
production
Cell, at the moment i have used mainly countif statements as well as
Sumproduct to tally up the minutes when 2 conditions are true. for
example
the cell is BA and the operation is a setup, repair etc.

Now i need to narrow it down to downtime in a specific week, how would i
enter a sumproduct and counif to run between certain dates ?

Example of the sheet data would be ..

Date Cell Operation mins
01/10/2007 BA Setup 50
03/10/2007 Filters Repair 30

Any help would be greatly appreciated ...



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
Counif multiple condition Avadivelan TCS Excel Worksheet Functions 3 November 8th 06 05:16 AM
counif greater or less than Raza Excel Worksheet Functions 2 April 29th 06 09:02 PM
Counif with different cells, not a range Anthony Slater Excel Discussion (Misc queries) 2 December 22nd 05 10:31 AM
Counif moglione1 Excel Discussion (Misc queries) 5 September 23rd 05 01:47 PM
counif but not all the cells thanks Excel Worksheet Functions 2 July 29th 05 06:04 PM


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