+ Reply to Thread
Results 1 to 19 of 19

Finding averages

  1. #1
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Finding averages

    Hi There,

    This is my first post and would really appreciate any assistance anyone can provide. I will explain this as accurately as possible.

    I am trying to calculate a continuous average as data is entered. I currently have a formula (=DATEDIF(C6,C10,"d")) calculating the number of days between entries.

    Example:

    15-Feb-10
    45 Days (formula used: =DATEDIF(C6,C10,"d"))
    26-Mar-10
    39 Days (formula used: =DATEDIF(C6,C10,"d"))
    15-Jun-10
    81 Days (formula used: =DATEDIF(C6,C10,"d"))
    27-Jul-10
    42 Days (formula used: =DATEDIF(C6,C10,"d"))
    22-Sep-10
    57 Days (formula used: =DATEDIF(C6,C10,"d"))

    Can anyone tell me what formula can be used to calculate the average number of days between entries as they are entered into the spreadsheet? FYI, I have tried the formula: =AVERAGE(C11,C15,C19,C23,C27,C31,C35) with no luck.

    Thanks in advance,

    GT
    Last edited by globetrotter532; 12-09-2010 at 05:47 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    First I am curious as to why are you using

    =DATEDIF(C6,C10,"d")

    instead of simply

    =C10-C6

    But as to your question do you have both the dates and the formulas to find the differences in the same column?

  3. #3
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Cutter,

    I used a formula I found on the net. I will try using your suggestion, seems a lot simpler.

    As to your question, yes, I have the dates and the formula in the same column.

    Regards,

    GT

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    Can you put the formulas to calculate differences in a separate column to simplify things?

    Or are you stuck with the way you have it?

  5. #5
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    I think with some rework, I may be able to have the formulas in a separate column and not part of the "spreadsheet".

    What if that does not work?

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    You'd better post a sample file with any private data removed.

  7. #7
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Sorry Cutter, how do I attach the file?

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    When you make a post you will find a "Manage Attachments" button in the second section of the "Additional Options" area which is directly below the "Submit Reply" button.

    Click on that "Manage Attachments" button and a new window opens.

    Click on one of the "Choose File" buttons and browse to your sample file and double click it.

    Click the "Upload" button and when you see your file's name appear you can close that window.

    Then hit the "Submit Reply" button.

  9. #9
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Attached is the file
    Attached Files Attached Files

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    You are getting the #NUM error in Cell C4 because you have a #NUM error in Cell C31 which is part of Cell C4's formula.

    Place this formula in Cell C11:

    =IF(C10="","",C10-C6)

    then copy it to the other appropriate cells in Col C

    The result in C4 will give you a result of 52.8

  11. #11
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Thanks so much Cutter!!!

  12. #12
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    You're quite welcome.

    Don't forget to mark your post as SOLVED

  13. #13
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Hi Cutter,

    Still having some problems. For some reason the cells in row 11 all read: TRUE, even though the formula is the same as the formulas in the other cells. any ideas?

    I have attached a modified spreadsheet with test info for you to look at.

    Regards,

    GT
    Attached Files Attached Files
    Last edited by globetrotter532; 12-09-2010 at 04:38 PM. Reason: attached file

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Finding averages

    You put the formula into the cell twice (expand the formula bar to see it). Just copy your formula from C15 into C11. Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  15. #15
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    Yep, what ChemistB says. Click on the drop down at the extreme right end of the formula bar.

    How did you manage to do that???

  16. #16
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Brain fart....

    Thanks Cutter & ChemistB!

  17. #17
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Brain Fart.....

    Thank you both!

  18. #18
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Finding averages

    Me thinks you also have wrong date in Cell D6!

  19. #19
    Registered User
    Join Date
    12-07-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Finding averages

    Already corrected....

+ 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