Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Post Average Time Not Calculating

I have a simple AVERAGE function, it averages the call time for all agents. I am not having troubles with the function itself though. The problem is when I copy and paste the information into the workbook, the information shows, but it does not "average" the time. I have to double click on each cell individually, after I double click on every cell with a time in it, it then averages the call time. Why does this not work right after pasting the information in? I have also tried doing a "paste special" but that did not work either. Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 259
Default Average Time Not Calculating

On 11/06/2012 11:19 PM, JPP wrote:
I have a simple AVERAGE function, it averages the call time for all
agents. I am not having troubles with the function itself though. The
problem is when I copy and paste the information into the workbook, the
information shows, but it does not "average" the time. I have to double
click on each cell individually, after I double click on every cell with
a time in it, it then averages the call time. Why does this not work
right after pasting the information in? I have also tried doing a "paste
special" but that did not work either. Thanks in advance!




Hi

Make sure the cells you are pasting to are formatted as [h]:mm

Then you can PasteSpecial.Value into the cells
HTH
Mick.
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by JPP View Post
I have a simple AVERAGE function, it averages the call time for all agents. I am not having troubles with the function itself though. The problem is when I copy and paste the information into the workbook, the information shows, but it does not "average" the time. I have to double click on each cell individually, after I double click on every cell with a time in it, it then averages the call time. Why does this not work right after pasting the information in? I have also tried doing a "paste special" but that did not work either. Thanks in advance!
When you say you tried "paste special" do you mean "paste special / values"?
If so then it will work on the proviso the cells you're pasting into are formatted the same as the others that do work.

Give that a try, and if still no luck, post an example workbook (without confidential information) on here and someone will happily help out.

S.
  #4   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Post

Spencer,

Whenever I attempt to do a paste special with values, then Excel doesnt calculate ANYTHING. And there is ALOT of calculating going on. I would rather double click every cell, then have nothing calculate. I don't get it, the average call time is the only one that doesn't work, until I double click on the cell containing the time of the call.

I am trying to upload a copy of this, but unfortunately, it is over the size limit. It is a very big project. Yikes.
  #5   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by JPP View Post
Spencer,

Whenever I attempt to do a paste special with values, then Excel doesnt calculate ANYTHING. And there is ALOT of calculating going on. I would rather double click every cell, then have nothing calculate. I don't get it, the average call time is the only one that doesn't work, until I double click on the cell containing the time of the call.

I am trying to upload a copy of this, but unfortunately, it is over the size limit. It is a very big project. Yikes.
Hi,

I've PM'd you an email address. If you want to ping your spreadsheet there I can take a look at it, then come back here with the answer so others can benefit.

S.


  #6   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Post

Try this....
Attached Files
File Type: zip 123.zip (93.1 KB, 38 views)
  #7   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Post

I got it. I just took out some of the stuff I didn't need help with. Thanks.
  #8   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by JPP View Post
I got it. I just took out some of the stuff I didn't need help with. Thanks.


The numbers are formatted as text, which is why the average formula is not picking them up.

As far as I see it, if you fix the root problem all will work well into the future.
When you said you copy and paste this data in, where do you copy it from?
If from another workbook then fix the formatting in that/those one/ones and you should be OK.

Let me know if you need more help.
  #9   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Default

I copy the information from an Excel file, which comes from a database.
  #10   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Post

Ok, so I formatted the cells as a number. I then pasted the information in. Then is switched the formatting BACK to general. I then changed it to number format again. Still did not calculate the time. Thanks for all the help also!


  #11   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Post

Then I formmated the Excel from which I pull the information to numbers format. It pastes into the Report as numbers. Still not averaging.
  #12   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by JPP View Post
Ok, so I formatted the cells as a number. I then pasted the information in. Then is switched the formatting BACK to general. I then changed it to number format again. Still did not calculate the time. Thanks for all the help also!
Are the numbers to the left or the right side of the cells?

If they're to the left they're not actually numbers, if to the right then there is no reason why they are not averaging. They do on the version I'm looking at.
  #13   Report Post  
JPP JPP is offline
Member
 
Posts: 35
Post

Yes, they are to the left. Could it be that it is formatted as TXT in the database? I beleive it was setup that way, as TXT. Im trying to confirm that now. And sorry, when I right click to format, Excel tells me that they are formatted as numbers.

Last edited by JPP : June 11th 12 at 10:09 PM
  #14   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by JPP View Post
Yes, they are to the left. Could it be that it is formatted as TXT in the database? I beleive it was setup that way, as TXT. Im trying to confirm that now.
If you could change it in the database to number format rather than text it could well solve your problem. I don't know too much about the inner workings of databases so couldn't guarantee it wasn't set up that way for a specific reason and therefore cannot be changed.

Failing that, you could record a simple macro to change the cells to number format that could be run at the click of a button each time...
  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 259
Default Average Time Not Calculating

On 12/06/2012 6:51 AM, JPP wrote:
I copy the information from an Excel file, which comes from a database.


+-------------------------------------------------------------------+
+-------------------------------------------------------------------+



Hi

I am a little confused as nowhere in the file you have posted does it
have any columns that show any time-stamps.

There are 2 date columns only, so I am curious how you are extracting
time for averaging.

Also, just an observation on your layout, I would consider removing the
merged cells as it could contribute to the math problem.

Cheers
Mick.


  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Average Time Not Calculating

On Mon, 11 Jun 2012 13:19:11 +0000, JPP wrote:


I have a simple AVERAGE function, it averages the call time for all
agents. I am not having troubles with the function itself though. The
problem is when I copy and paste the information into the workbook, the
information shows, but it does not "average" the time. I have to double
click on each cell individually, after I double click on every cell with
a time in it, it then averages the call time. Why does this not work
right after pasting the information in? I have also tried doing a "paste
special" but that did not work either. Thanks in advance!


Your data in the time column, on the sheet that you posted for examination, is TEXT. The average function ignores text, hence the div/0 error.

There is probably something in your import process, from the original database, that is resulting in your time values being interpreted as text strings, rather than as numbers.
I would suggest reviewing your import method, and ensuring that these numbers are imported as numbers.

Alternative methods of dealing with the problem:
Convert the text strings to numbers after import:
Method 1 you are already using -- Edit each cell individually -- but that is tedious
Method 2: Place a 1 in some unused cell.
Select the cell
Edit/Copy
Select 'CCI Info'!L2:L101
Edit/Paste Special Operation: Multiply

Change the Average formula to handle the data as written. e.g: the array formula (entered with <ctrl<shift<enter)

=AVERAGE(IF('CCI Info'!L2:L101="","",--'CCI Info'!L2:L101))

would do that EXCEPT the cell in which you have the formula is a MERGED cell. While merged cells are often convenient, they have many limitations. One of these limitations is that you cannot have an ARRAY formula in a merged cell! So you would have to change the layout of your worksheet to use this solution.

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
Calculating Average Time Eán[_2_] Excel Worksheet Functions 3 March 2nd 09 04:18 PM
Calculating an average Maggie Excel Worksheet Functions 1 August 22nd 08 03:50 AM
Calculating Average ub Excel Discussion (Misc queries) 2 July 16th 08 05:14 PM
Calculating Average Graham Excel Worksheet Functions 1 July 2nd 08 04:40 PM
Calculating the average Andy_Trow Excel Discussion (Misc queries) 3 July 27th 07 02:15 PM


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