+ Reply to Thread
Results 1 to 6 of 6

Averaging with a formula

  1. #1
    Registered User
    Join Date
    08-20-2006
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    37

    Averaging with a formula

    OK, here's a quick easy question. I'm recording the number of times an event occurs in column D. In column E, I'm recording the total of times this event has occurred so far. In column F, I want the average at the end of the day. By this I mean, if by day 3 the even has occurred a total of 9 times at 3 times a day, I want F4 to equal 3. If on day 4 it happens 4 times, I want F5 to equal 3.25 and F4 to remain at 3 for reference. Am I making any sense?

    Thanks!

  2. #2
    Biff
    Guest

    Re: Averaging with a formula

    Hi!

    If you have the cumulative total is column E, starting in E2, for the
    cumulative average, entered in F2:

    =IF(E2="","",E2/ROWS($1:1))

    Or, just use the AVERAGE function on the daily occurance entries in column
    D:

    =IF(D2="","",AVERAGE(D$2:D2))

    If you will have 1000's of rows of data to include in the calculation you
    will want to avoid using the AVERAGE function.

    Biff

    "scubab" <[email protected]> wrote in
    message news:[email protected]...
    >
    > OK, here's a quick easy question. I'm recording the number of times an
    > event occurs in column D. In column E, I'm recording the total of times
    > this event has occurred so far. In column F, I want the average at the
    > end of the day. By this I mean, if by day 3 the even has occurred a
    > total of 9 times at 3 times a day, I want F4 to equal 3. If on day 4 it
    > happens 4 times, I want F5 to equal 3.25 and F4 to remain at 3 for
    > reference. Am I making any sense?
    >
    > Thanks!
    >
    >
    > --
    > scubab
    > ------------------------------------------------------------------------
    > scubab's Profile:
    > http://www.excelforum.com/member.php...o&userid=37778
    > View this thread: http://www.excelforum.com/showthread...hreadid=574040
    >




  3. #3
    Registered User
    Join Date
    08-20-2006
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    37

    One more

    Great! But, is there anyway to simplify the avg? Maybe to only two decimals? 3.33 instead of 3.3333333

  4. #4
    Biff
    Guest

    Re: Averaging with a formula

    =IF(E2="","",ROUND(E2/ROWS($1:1),2))

    Or

    =IF(D2="","",ROUND(AVERAGE(D$2:D2),2))

    Biff

    "scubab" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Great! But, is there anyway to simplify the avg? Maybe to only two
    > decimals? 3.33 instead of 3.3333333
    >
    >
    > --
    > scubab
    > ------------------------------------------------------------------------
    > scubab's Profile:
    > http://www.excelforum.com/member.php...o&userid=37778
    > View this thread: http://www.excelforum.com/showthread...hreadid=574040
    >




  5. #5
    Registered User
    Join Date
    08-20-2006
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    37

    :)

    Thanks Biff!!!!

  6. #6
    Biff
    Guest

    Re: Averaging with a formula

    You're welcome!

    Biff

    "scubab" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks Biff!!!!
    >
    >
    > --
    > scubab
    > ------------------------------------------------------------------------
    > scubab's Profile:
    > http://www.excelforum.com/member.php...o&userid=37778
    > View this thread: http://www.excelforum.com/showthread...hreadid=574040
    >




+ 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