#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default count occurances

hi
i have a spreedsheet with three columns of data
column CAholds the op number
column CB holds the fault description
column CC holds the downtime
what i want to do is count the amount of downtime for each fault
decription when it occurs against an op number
OP915 SPINDLE FAULT 00:00:25
OP915 SPINDLE FAULT 00:00:13
OP915 SPINDLE FAULT 00:00:02
OP915 SPINDLE FAULT 00:00:05
OP018 LOWER LIFTING 00:01:09
OP018 LOWER LIFTING 00:02:33
OP018 LOWER LIFTING 00:01:37
OP018 LOWER LIFTING 00:03:30
OP018 LOWER LIFTING 00:01:29

result
OP915 SPINDLE FAULT 00:00:45
OP018 LOWER LIFTING 00:10:18


thanks

kevin

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default count occurances

See if this is what you want.

=SUMPRODUCT(--(CA1:CA100="OP915"),--(CB1:CB100="SPINDLE FAULT"),CC1:CC100)

HTH,
Paul

"kevcar40" wrote in message
ps.com...
hi
i have a spreedsheet with three columns of data
column CAholds the op number
column CB holds the fault description
column CC holds the downtime
what i want to do is count the amount of downtime for each fault
decription when it occurs against an op number
OP915 SPINDLE FAULT 00:00:25
OP915 SPINDLE FAULT 00:00:13
OP915 SPINDLE FAULT 00:00:02
OP915 SPINDLE FAULT 00:00:05
OP018 LOWER LIFTING 00:01:09
OP018 LOWER LIFTING 00:02:33
OP018 LOWER LIFTING 00:01:37
OP018 LOWER LIFTING 00:03:30
OP018 LOWER LIFTING 00:01:29

result
OP915 SPINDLE FAULT 00:00:45
OP018 LOWER LIFTING 00:10:18


thanks

kevin



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default count occurances

Try:-

=SUMPRODUCT((A1:A10="OP915")*(B1:B10="Spindle fault")*(C1:C10))

Mike

"kevcar40" wrote:

hi
i have a spreedsheet with three columns of data
column CAholds the op number
column CB holds the fault description
column CC holds the downtime
what i want to do is count the amount of downtime for each fault
decription when it occurs against an op number
OP915 SPINDLE FAULT 00:00:25
OP915 SPINDLE FAULT 00:00:13
OP915 SPINDLE FAULT 00:00:02
OP915 SPINDLE FAULT 00:00:05
OP018 LOWER LIFTING 00:01:09
OP018 LOWER LIFTING 00:02:33
OP018 LOWER LIFTING 00:01:37
OP018 LOWER LIFTING 00:03:30
OP018 LOWER LIFTING 00:01:29

result
OP915 SPINDLE FAULT 00:00:45
OP018 LOWER LIFTING 00:10:18


thanks

kevin


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default count occurances



=SUMPRODUCT(--($CA$1:$CA$9="OP915"),--($CB$1:$CB$9="SPINDLE
FAULT"),($CC$1:$CC$9))

Format cell as hh:mm:ss or [hh]:mm:ss if 24 hours

It's better if you put the parameters in cells:

=SUMPRODUCT(--($CA$1:$CA$9=X1),--($CB$1:$CB$9=X2),($CC$1:$CC$9))

X1="OP915"
X2="SPINDLE FAULT"

HTH

"kevcar40" wrote:

hi
i have a spreedsheet with three columns of data
column CAholds the op number
column CB holds the fault description
column CC holds the downtime
what i want to do is count the amount of downtime for each fault
decription when it occurs against an op number
OP915 SPINDLE FAULT 00:00:25
OP915 SPINDLE FAULT 00:00:13
OP915 SPINDLE FAULT 00:00:02
OP915 SPINDLE FAULT 00:00:05
OP018 LOWER LIFTING 00:01:09
OP018 LOWER LIFTING 00:02:33
OP018 LOWER LIFTING 00:01:37
OP018 LOWER LIFTING 00:03:30
OP018 LOWER LIFTING 00:01:29

result
OP915 SPINDLE FAULT 00:00:45
OP018 LOWER LIFTING 00:10:18


thanks

kevin


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
Count consecutive occurances [email protected] Excel Worksheet Functions 10 March 24th 07 02:15 AM
Need to count occurances in different columns More Macro Help Needed Excel Worksheet Functions 2 December 21st 06 05:20 PM
Count # of unique occurances sharder Excel Worksheet Functions 3 June 29th 06 05:12 AM
count matching occurances campfire51 Excel Worksheet Functions 0 March 15th 06 09:31 PM
Count occurances Problem Ed Gregory Excel Worksheet Functions 3 September 9th 05 08:06 PM


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