How do I get averages based on specific fields.

Given data such as below,
Is there and easy way to find and display in a single cell:
what is the average time (Hours:mins) for all tickets of Complete
status.
and
what is the average Hours:mins for all tickets of status=picked AND of
the type FWSnap, ?

Thanks,
Crzzy1

ticket     Date                Time    Status        TYPE
Hours:mins
44738       11/2/2008       4:45       Opened
FWRules              0:00
44738       11/2/2008       6:41       Picked
FWRules              1:56
44738       11/2/2008       7:14       Approved
FWRules              2:29
44738       11/3/2008       0:46       Complete       FWRules
17:32
44739       11/3/2008       2:43       Opened
FWSnap              0:00
44739       11/3/2008       3:15       Picked
FWSnap              0:32
44739       11/3/2008       3:20       Approved
FWSnap              0:37
44739       11/3/2008       8:25       Complete
FWSnap              5:42
44740       11/3/2008       6:38       Opened
OtherRout              0:00
44740       11/3/2008       7:27       Picked
OtherRout              0:49
44740       11/3/2008       7:28       Approved
OtherRout              0:50
44740       11/3/2008       7:40       Complete
OtherRout              1:02
44741       11/3/2008       9:27       Opened
FWUser              0:00
44741       11/3/2008       9:28       Picked
FWUser              0:01
44741       11/3/2008       9:28       Approved
FWUser              0:01
44741       11/3/2008       10:17       Complete
FWUser              0:50
44742       11/3/2008       9:35       Opened
OtherRout              0:00
44742       11/3/2008       9:36       Picked
OtherRout              0:01
44742       11/3/2008       10:04       Approved
OtherRout              0:29
44742       11/3/2008       10:13       Complete
OtherRout              0:38
44743       11/3/2008       9:59       Opened
FWRules              0:00
44743       11/3/2008       10:04       Picked
FWRules              0:05
44743       11/3/2008       10:04       Approved
FWRules              0:05
44743       11/3/2008       10:11       Complete
FWRules              0:12
0
cozzmo1 (2)
12/10/2008 7:07:57 PM
excel.charting 18370 articles. 0 followers. Follow

2 Replies
454 Views

Similar Articles

[PageSpeed] 50

If column D has Status, E and Type and C has times
=SUMPRODUCT(--(D1:D100="picked"), --(E1:E100="FWSnap"), C1:C100)
Adjust ranges but do not use full-column references (D:D) unless you have 
Excel 2007
For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
-- 
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

<cozzmo1@hotmail.com> wrote in message 
news:35fdfff6-be32-4aa0-9a38-5657a0e5383a@k36g2000yqe.googlegroups.com...
> Given data such as below,
> Is there and easy way to find and display in a single cell:
> what is the average time (Hours:mins) for all tickets of Complete
> status.
> and
> what is the average Hours:mins for all tickets of status=picked AND of
> the type FWSnap, ?
>
> Thanks,
> Crzzy1
>
> ticket     Date                Time    Status        TYPE
> Hours:mins
> 44738       11/2/2008       4:45       Opened
> FWRules              0:00
> 44738       11/2/2008       6:41       Picked
> FWRules              1:56
> 44738       11/2/2008       7:14       Approved
> FWRules              2:29
> 44738       11/3/2008       0:46       Complete       FWRules
> 17:32
> 44739       11/3/2008       2:43       Opened
> FWSnap              0:00
> 44739       11/3/2008       3:15       Picked
> FWSnap              0:32
> 44739       11/3/2008       3:20       Approved
> FWSnap              0:37
> 44739       11/3/2008       8:25       Complete
> FWSnap              5:42
> 44740       11/3/2008       6:38       Opened
> OtherRout              0:00
> 44740       11/3/2008       7:27       Picked
> OtherRout              0:49
> 44740       11/3/2008       7:28       Approved
> OtherRout              0:50
> 44740       11/3/2008       7:40       Complete
> OtherRout              1:02
> 44741       11/3/2008       9:27       Opened
> FWUser              0:00
> 44741       11/3/2008       9:28       Picked
> FWUser              0:01
> 44741       11/3/2008       9:28       Approved
> FWUser              0:01
> 44741       11/3/2008       10:17       Complete
> FWUser              0:50
> 44742       11/3/2008       9:35       Opened
> OtherRout              0:00
> 44742       11/3/2008       9:36       Picked
> OtherRout              0:01
> 44742       11/3/2008       10:04       Approved
> OtherRout              0:29
> 44742       11/3/2008       10:13       Complete
> OtherRout              0:38
> 44743       11/3/2008       9:59       Opened
> FWRules              0:00
> 44743       11/3/2008       10:04       Picked
> FWRules              0:05
> 44743       11/3/2008       10:04       Approved
> FWRules              0:05
> 44743       11/3/2008       10:11       Complete
> FWRules              0:12 


0
bliengme5824 (3040)
12/10/2008 9:12:45 PM
Oh dear, that was half-done. It gives the sum, you want average
=SUMPRODUCT(--(D1:D100="picked"), --(E1:E100="FWSnap"), 
C1:C100)/=SUMPRODUCT(--(D1:D100="picked"), --(E1:E100="FWSnap"))
But if you have Excel 2007, look at AVERAGEIFS
best wishes
-- 
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Bernard Liengme" <bliengme@stfx.TRUENORTH.ca> wrote in message 
news:%23sM1MwwWJHA.3920@TK2MSFTNGP05.phx.gbl...
> If column D has Status, E and Type and C has times
> =SUMPRODUCT(--(D1:D100="picked"), --(E1:E100="FWSnap"), C1:C100)
> Adjust ranges but do not use full-column references (D:D) unless you have 
> Excel 2007
> For more details on SUMPRODUCT
> Bob Phillips
> http://www.xldynamic.com/source/xld.SUMPRODUCT.html
> J.E McGimpsey
> http://mcgimpsey.com/excel/formulae/doubleneg.html
> best wishes
> -- 
> Bernard V Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
> remove caps from email
>
> <cozzmo1@hotmail.com> wrote in message 
> news:35fdfff6-be32-4aa0-9a38-5657a0e5383a@k36g2000yqe.googlegroups.com...
>> Given data such as below,
>> Is there and easy way to find and display in a single cell:
>> what is the average time (Hours:mins) for all tickets of Complete
>> status.
>> and
>> what is the average Hours:mins for all tickets of status=picked AND of
>> the type FWSnap, ?
>>
>> Thanks,
>> Crzzy1
>>
>> ticket     Date                Time    Status        TYPE
>> Hours:mins
>> 44738       11/2/2008       4:45       Opened
>> FWRules              0:00
>> 44738       11/2/2008       6:41       Picked
>> FWRules              1:56
>> 44738       11/2/2008       7:14       Approved
>> FWRules              2:29
>> 44738       11/3/2008       0:46       Complete       FWRules
>> 17:32
>> 44739       11/3/2008       2:43       Opened
>> FWSnap              0:00
>> 44739       11/3/2008       3:15       Picked
>> FWSnap              0:32
>> 44739       11/3/2008       3:20       Approved
>> FWSnap              0:37
>> 44739       11/3/2008       8:25       Complete
>> FWSnap              5:42
>> 44740       11/3/2008       6:38       Opened
>> OtherRout              0:00
>> 44740       11/3/2008       7:27       Picked
>> OtherRout              0:49
>> 44740       11/3/2008       7:28       Approved
>> OtherRout              0:50
>> 44740       11/3/2008       7:40       Complete
>> OtherRout              1:02
>> 44741       11/3/2008       9:27       Opened
>> FWUser              0:00
>> 44741       11/3/2008       9:28       Picked
>> FWUser              0:01
>> 44741       11/3/2008       9:28       Approved
>> FWUser              0:01
>> 44741       11/3/2008       10:17       Complete
>> FWUser              0:50
>> 44742       11/3/2008       9:35       Opened
>> OtherRout              0:00
>> 44742       11/3/2008       9:36       Picked
>> OtherRout              0:01
>> 44742       11/3/2008       10:04       Approved
>> OtherRout              0:29
>> 44742       11/3/2008       10:13       Complete
>> OtherRout              0:38
>> 44743       11/3/2008       9:59       Opened
>> FWRules              0:00
>> 44743       11/3/2008       10:04       Picked
>> FWRules              0:05
>> 44743       11/3/2008       10:04       Approved
>> FWRules              0:05
>> 44743       11/3/2008       10:11       Complete
>> FWRules              0:12
>
> 


0
bliengme5824 (3040)
12/10/2008 9:19:37 PM
Reply:

Similar Artilces:

i get error 404 not found when trying to download
I'm trying to download nokia pc suite to windows xp to upload gallery onto the computer but get error message404 not found - how can i download this pc suite please -- Krysy Albutt Krysy Albutt wrote: > I'm trying to download nokia pc suite to windows xp to upload gallery > onto the computer but get error message404 not found - how can i > download this pc suite please Care to enlighten us how this pertains to: - 1) Microsoft 2) Publisher 3) Windows If you're having problems downloading from the *NOKIA* site where do you think you should be directing your ...

How to get Calendar to send me reminders
I have changed my e-mail address but for some reason I cannot get Calendar to send reminders to my new address - I think I have carried out all that is necessary to effect the changover but I am not getting reminders sent. Can anyone help please? Is the Calendar Live ID based and accessible at Calendar.live.com ? -- ....winston ms-mvp mail "Dabardevon" wrote in message = news:FDC2B3B2-EDE4-41B1-BFC4-C0F9ED59CFB9@microsoft.com... I have changed my e-mail address but for some reason I cannot get = Calendar to send reminders to my new address - I think I have...

Average If Question #2
We are trying to average the numbers in one column only if they equal any or all of 6 different numbers from a different column (7474, 7921, 8612, 9011, 3945, 2209). We are using this formula, but it seems to be giving us slightly different numbers than if we just pulled the numbers together through sorting and took the average. =AVERAGE(IF(B1:B9={7474, 7921, 8612, 9011, 3945, 2209},C1:C9,FALSE)) Try: =AVERAGE(IF(B1:B9={7474,7921,8612,9011,3945,2209},C1:C9)) Array-entered, meaning press ctrl + shift + enter. HTH Jason Atlanta, GA >-----Original Message----- >We are trying to ...

Calculating Fields and Manual Input
Hello, Is it possible to have a field that is both calculated or manually inputted?. For example, if field 1 and field 2 has data then calculate field 3. Can we also have the user simply enter the total amount into 3. What I have noticed is if I enter an amount directly into field 3 and field 1 and 2 do not have data the value goes back to 0 (which makes sense) but wondering if there is a way around this. Thanks! On Jul 1, 6:06 am, MDV1457 <MDV1...@discussions.microsoft.com> wrote: > Hello, > Is it possible to have a field that is both calculated or manually > inputted...

Some recipients get the attachment, some get winmail.dat
This one has me baffled. We are using Exchange 2000 and Outlook 2000 and have been for 8 months. No previous problems with attachments (.doc, .xls, .jpg). About 2 weeks ago, we started hearing from certain recipients that the attachment wasn't arriving; instead they were getting an unreadable file called winmail.dat. MS says that this is because the sender is using Rich Text to format the email. We have changed the senders to use Plain Text and still have the same problem. If the email is sent to several recipients, some will get the attachment fine, some will not. This didn'...

How to get the CScrollBar's Handle in CTreeCtrl?
Hey,All: I thought I have a problem when I trid to get the CScrollBar's handle from my CTreeCtrl extended handle. Can anybody tell me whether I can get the handle of the CScrollBar from the CTreeCtrl? Thanks in advance! Carl :-| Carl wrote: > Hey,All: > > I thought I have a problem when I trid to get the CScrollBar's handle from > my CTreeCtrl extended handle. > Can anybody tell me whether I can get the handle of the CScrollBar from the > CTreeCtrl? > > Thanks in advance! > Carl > :-| > > Sorry, it is not that simple. The scroll bars that...

A Crystal Beginner
I am using Crystal 9.2.4.77 and have loaded the Crystal enhancements. Now I want to do against the CRM database. What do I do? I thought I would create a data source to the CRM SQLserver, which I did, then connect to it through Crystal Reports. That works, but when I drill down on the AAA_MSCRM database to choose my tables, it shows me dbo as the only option (where did this come from??) and under that are just a few generic tables. No CRM tables. Something's not quite right. What am I missing? file - log on to aps server "KBLawson" <klawson@aetinc.com> wrote in ...

Cannot get fast forward or fast reverse to work with WMP 11
I am running Vista Home Premium on a HP G 217-EM Notebook which comes pre-installed with Windows Media Player 11. When I play cds and try to fast forward or fast reverse by keeping the fast forward or fast reverse buttons constantly depressed nothing happens. Why is this, and can anyone come up with a solution? Many thanks This doesn't work on my system either, so it's probably just a limitation of WMP. Fast forward and fast reverse should work fine when you rip the CD's to MP3 or WMA files, and play these files instead. Regards -- Tim De Baets http://www....

Resetting Autonumber field
Can anyone tell me how I can reset the Autonumber field in my table? Compacting a database with an empty table will do that Pieter "Firz" <Firz@discussions.microsoft.com> wrote in message news:AE025D3B-EF2E-48E8-B7F9-66A442D1AE73@microsoft.com... > Can anyone tell me how I can reset the Autonumber field in my table? Compact and repair will do it. -- "Loose Change 2nd Edition" has been seen by almost 7 million people on Google video "Firz" wrote: > Can anyone tell me how I can reset the Autonumber field in my table? You've already re...

Get paid while you get online!!
I found a great Internet company - Cashfiesta.com - that has created a product everyone can benefit from. They pay you while you work or play on your computer. All you need to do is keep their software - the FiestaBar=99 - active while you are online. They even pay you when your friends are using their computers. Unlike other companies, Cashfiesta gives you control over how much money you earn. They have an individual payrate based on the number of Special Offers you sign up for. As some of these offers are free, you can increase your payrate up to 33 times without spending a penny. It's...

Can't get auto-update (update) to install
Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Power PC I've been trying to manually check for updates to Word 2008, and I get a &quot;critical update&quot; notice, asking me to install auto-update. When I try to install it, I cannot. It just keeps repeating the attempt, in an &quot;endless loop.&quot; What to do? <br> Thank you. ...

Spreadsheet getting corrupted
Hello All: I have a relatively large spreadsheet. I am getting errors (see after my signature line). What could be causing these errors? Is it that the spreadsheet is too large? Thanks Deguza -------------------------------------------------------- Microsoft Office Excel File Repair Log Errors were detected in file 'C:\Documents and Settings\deguza\My Documents\sales\Sales_2006_2007.xls' The following is a list of repairs: Global PivotTable report information was repaired due to integrity problems. Global PivotTable report information was repaired due to integrity problems. Glo...

Reg getting the next IV Document Number field !
Hi, I am creating a window in dexterity similar to the item transaction entry window (Transactions>Inventory> Transaction Entry). In the Item transaction Entry window, the Document number field defaults to the next document number when we move the focus to that field. I wanted to know if there is any function , or table that i can access to get the next document number in the new window that i am creating. Thanks, swetha -- swetha >In the Item transaction Entry window, the Document number field defaults to the next document number when we move the focus to that field.< T...

Checking specific text string in excel files stored in a folder
Hi, I need to write a code that can do the following: 1) prompt user to select a particular folder 2) search for a particular text string, for e.g., ABCD in all the excel files in that folder (the number of files in the folder will vary and so does the names of the files). Is it possible to specify the string that we want to search on the fly when macro is run? 3) create a simple report that contains the filename in one column and yes / no in the second column that tell me which file names contain that keyword (it will be great if the path of the file can be recorded in the 3rd colum...

Tasks
Hi, I've been trying to edit the Task form so that I can have both a regarding account and a regarding case for each task (by default I can have only one regarding value). Is there some way I can add the system attributes to an entity so I can choose them onto the form. A task form should be like this: Subject Description Account Case User Duration Due by I have one that can be either Account or Case but I'd like to be able to register both. Is this possible? Thanks, Valdimar Valdimar, It is not possible to add relationships between system entities in v3.0, so you ...

Field mapping for Opportunity Products
Why I can't add some field mapping for OpportunityProduct system relation with Opportunity? I need to know the default pricelist that was assigned for an Opportunity when I am at OpportunityProduct form. ...

inserting texts in cell based on conditions
Hi, I would very much appreciate if someone could help me solving a problem, illustrated by the following example: Column A B C 1 1 "LB" 2 1 "DK" 3 4 1 1 "LB/DK" If there's a 1 in column A, the corresponding cell in column C should get the text "LB" inserted into it. If there's a 1 in column C, the corresponding cell in column C should get the text "DK" inserted into it. If both column A and B have ones in them, the corresponding cell should get the...

How do I get??
Sorry if this seems a fairly easy question to you guys. I have a spreadsheet and I need to get the current system time into a cell. The format of the time is hh:mm am/pm. Any assistance would be most helpful. Hi try =INT(NOW()) in this cell and format is to your needs -- Regards Frank Kabel Frankfurt, Germany PM wrote: > Sorry if this seems a fairly easy question to you guys. > > I have a spreadsheet and I need to get the current system time into a > cell. The format of the time is hh:mm am/pm. > > Any assistance would be most helpful. PM, in the cell you want pu...

GAL displayed fields
Is there a way to sync fields defined in ADUC (eg. General, Address, and Telephones Tab info) with the applicable fields in the GAL without entering it in both places separately? TIA. -- GJ Not sure how you can enter stuff in the GAL - it's nothing but a filtered view of data in AD that's displayed/modified using ADUC and other such tools. If you change it in ADUC, you will see the change when you view the GAL. There may be some replication latency when you have multiple DCs or a distributed environment with multiple Sites. -- Bharat Suneja MVP - Exchange www.zenprise.com NEW...

Get notified when Out of Office is on
I am using Outlook 2007. With 2003, when returning from leave, I used to get a notification that the Outlook out of office was still on and asking me if I wanted to switch it off. This reminder no longer appears with 2007. How can I switch this setting on so that I get the notification? "Mary Ann" <MaryAnn@discussions.microsoft.com> wrote in message news:ED5533A7-D0EA-41B8-B1A0-A9D15FB6FD98@microsoft.com... >I am using Outlook 2007. With 2003, when returning from leave, I used to get > a notification that the Outlook out of office was still on and asking me ...

Getting Control ID in Active X control
GetWindowLong return 0. You need to call GetDlgCtrlID from outside the activex control as the function available within the control returns an arbitrary value of zero. Take a look at this article http://xendra.ens.uabc.mx/~sinfante/loo/libro/ch17_4.htm particularly the paragraph preceeding the title "MFC and Ambient Properties". This really begs the question why you want the ID in the first place as activex controls have to be fully self containing to operate - with a few exceptions where sibling controls need to be able to locate each other. - Tim "ytv" <...

over VPN, it gets stuck when sending outgoing email
When I use VPN to connect to work from home, the outlook can not finish sending outgoing emails. The progress bar moves to the end but then stops there forever. It can never finish. The receiving of new incoming emails work fine. All other network functionality works, e.g. internet browsing, telnet, ftp, etc, all work fine. My system is win2k. I use linksys wireless DSL router. I'd appreciate any hint! Are you using Exchange server? I'd set up your mail profile to prompt you to work offline or online - when using VPN, work offline with scheduled syncs. If not using exchange, pos...

Get photos from a camera
I have an asp.net intranet application that I need to upload 1 or all photos from a digital camera at a PC workstation. We are using DataGrids and GridViews to display them on the web once they are uploaded but need something at the client. I assume I need some sort of ActiveX process or something. Has anyone run into a solution for this need? Thanks. -- David "DavidC" <dlchase@lifetimeinc.com> wrote in message news:2B061F4F-B548-4AA4-96FA-2F87383192D2@microsoft.com... > I have an asp.net intranet application that I need to upload 1 or all > photos ...

Adding new fields to the schema
I'm trying to find any documentation to tell me how to add fields to the schema, but not seeing anything. Sorry if I overlooked the obvious. You want to look at the deployment manager... it has a help file associated with it. >-----Original Message----- >I'm trying to find any documentation to tell me how to add fields to the >schema, but not seeing anything. Sorry if I overlooked the obvious. > > >. > keep in imnd that while you can add fields you cannot remove them!! take care and research before adding many fields "kb" <anonymous@discuss...

how to get the format of this cell right?
When I let go: Selection.Replace " ", Replacement:="-", Lookat:=xlPart, _ SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False " " is entered by means of an array: Words = Array(" ", "+", "/", "---", "--", "&") on a cell containing: 5 a I would expect to get: 5-a as a result. Unfortunately, it produces 5:00:00-AM. How can I solve this tiny but frustrating problem? best regards Pet...