+ Reply to Thread
Results 1 to 8 of 8

Help with changing format into time and averaging

Hybrid View

ElleGee Help with changing format... 02-17-2012, 11:16 PM
ConneXionLost Re: Help with changing format... 02-17-2012, 11:22 PM
ElleGee Re: Help with changing format... 02-17-2012, 11:38 PM
ConneXionLost Re: Help with changing format... 02-18-2012, 12:02 AM
ElleGee Re: Help with changing format... 02-18-2012, 12:09 AM
bebo021999 Re: Help with changing format... 02-18-2012, 12:15 AM
ConneXionLost Re: Help with changing format... 02-18-2012, 12:17 AM
bebo021999 Re: Help with changing format... 02-18-2012, 12:23 AM
  1. #1
    Registered User
    Join Date
    02-17-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help with changing format into time and averaging

    Hi,
    I have been given a spreadsheet and I need to average the time in different categories and then graph it. I've got hundreds of rows of data so manually over typing it isnt an option. I've tried changing the cell format to h:mm, and to time but the average still comes up as #DIV/0!. This is what my data looks like:

    Processed In store
    DATE TIME DATE TIME
    13/10/2011 5.23am 13/10/2011 8.18am
    13/10/2011 5.18am 13/10/2011 8.18am
    13/10/2011 5.19am 13/10/2011 8.19am
    27/10/2011 5.35am 27/10/2011 8.59am

    Everything is in different cells (i.e date, time, date, time..4 different columns). I cant even work out the time taken to process (i.e. 8.18am - 5.23am) because it just says #VALUE!...I dont know what format my data should be, and how to change it efficiently.

    Not sure if any of this makes sense, but I would appreciate some pointers!

    Thanks
    Elle

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Help with changing format into time and averaging

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook. Don't upload a picture when you have a workbook question. None of us is inclined to recreate your data. Upload the workbook and manually add an 'after' situation so that we can see what you expect. In addition clearly explain how you get the results..
    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    02-17-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with changing format into time and averaging

    Ok this is my data (I just copied and pasted it to a new workbook and removed the sensitive data)

    What I need is the average of the times in column G, in each category, but first I need to change the format. But I dont know what format will work better and how to change it without losing any of my data.
    Attached Files Attached Files

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Help with changing format into time and averaging

    Excel is recognizing your date entries, but not your time entries. Excel is treating them as text. One method is to use the TIME function:

    =TIME(LEFT(G4,FIND(".",G4,1)-1),MID(G4,FIND(".",G4,1)+1,2),0)
    You should then be able to average the results.

    Cheers,

  5. #5
    Registered User
    Join Date
    02-17-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with changing format into time and averaging

    Thank you thank you thank you!!!

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Help with changing format into time and averaging

    May I admend to fit "pm":
    =TIME(LEFT(G4,FIND(".",G4,1)-1)+IF(RIGHT(G4,2)="am",0,12),MID(G4,FIND(".",G4,1)+1,2),0)
    Quang PT

  7. #7
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Help with changing format into time and averaging

    Thanks bebo, I'm too accustomed to using 24 hour format.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Help with changing format into time and averaging

    I attach my suggestion for your format. Average time will be placed for each category.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1