Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Countif with multiple conditions

Hello,
I am analysing data for equipment run time I have the following data
A B F G
H
Unit# Date Run #Batches Date Clean ended Date Clean
Started
12 7/5/6 Formula 7/5/6
8/1/6
25 7/5/6
14 7/6/6
16 7/6/6

The dates for the cleaning are specific to the unit number. What i want to
do is find out the number of runs a unit was run in between cleaning. I am
using
=IF(H6-G6=0,"",COUNTIF(B:B,"<"&H6)-COUNTIF(B:B,"<"&G6))
This works if I seperate the run data by unit# and then use the equation,
but I will be using this as a running file for future use and it already
contains 3000 lines of data. I would like add in an additional condition for
the countif to only use dates for a given unit#. Any help would be
appreciated.

Thanks
Vito
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Countif with multiple conditions

I think you'll want sumproduct for this. Try something like this:

=SUMPRODUCT(--(B1:B3000H6),--(B1:B3000<G6),--(A1:A3000=12))

In this formula, it is looking for criteria of dates that are greater than
H6 and less than G6, and where the unit number is 12 (modify as needed).

HTH,
Paul

--

"vito" wrote in message
...
Hello,
I am analysing data for equipment run time I have the following data
A B F G
H
Unit# Date Run #Batches Date Clean ended Date Clean
Started
12 7/5/6 Formula 7/5/6
8/1/6
25 7/5/6
14 7/6/6
16 7/6/6

The dates for the cleaning are specific to the unit number. What i want to
do is find out the number of runs a unit was run in between cleaning. I am
using
=IF(H6-G6=0,"",COUNTIF(B:B,"<"&H6)-COUNTIF(B:B,"<"&G6))
This works if I seperate the run data by unit# and then use the equation,
but I will be using this as a running file for future use and it already
contains 3000 lines of data. I would like add in an additional condition
for
the countif to only use dates for a given unit#. Any help would be
appreciated.

Thanks
Vito



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Countif with multiple conditions

Thank you very much this worked just fine.
Vito

"PCLIVE" wrote:

I think you'll want sumproduct for this. Try something like this:

=SUMPRODUCT(--(B1:B3000H6),--(B1:B3000<G6),--(A1:A3000=12))

In this formula, it is looking for criteria of dates that are greater than
H6 and less than G6, and where the unit number is 12 (modify as needed).

HTH,
Paul

--

"vito" wrote in message
...
Hello,
I am analysing data for equipment run time I have the following data
A B F G
H
Unit# Date Run #Batches Date Clean ended Date Clean
Started
12 7/5/6 Formula 7/5/6
8/1/6
25 7/5/6
14 7/6/6
16 7/6/6

The dates for the cleaning are specific to the unit number. What i want to
do is find out the number of runs a unit was run in between cleaning. I am
using
=IF(H6-G6=0,"",COUNTIF(B:B,"<"&H6)-COUNTIF(B:B,"<"&G6))
This works if I seperate the run data by unit# and then use the equation,
but I will be using this as a running file for future use and it already
contains 3000 lines of data. I would like add in an additional condition
for
the countif to only use dates for a given unit#. Any help would be
appreciated.

Thanks
Vito




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
COUNTIF with multiple conditions? Eric Excel Worksheet Functions 7 October 17th 06 02:25 AM
COUNTIF with multiple conditions Eric Excel Discussion (Misc queries) 3 October 16th 06 06:29 PM
CountIf with multiple conditions Thor Excel Worksheet Functions 2 September 22nd 06 08:59 PM
COUNTIF Multiple Conditions Paul Sheppard Excel Discussion (Misc queries) 5 December 28th 05 07:03 PM
COUNTIF and multiple conditions Sami Excel Worksheet Functions 1 September 28th 05 09:03 AM


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