+ Reply to Thread
Results 1 to 10 of 10

Average Function Help Needed

Hybrid View

michaelas Average Function Help Needed 09-11-2005, 04:01 PM
BenjieLop << Hi, I'm trying to... 09-11-2005, 05:02 PM
BenjieLop To determine the average of... 09-12-2005, 11:59 AM
michaelas That did it! Thanks... 09-12-2005, 03:29 PM
BenjieLop You are welcome... I am just... 09-12-2005, 08:19 PM
Guest Re: Average Function Help... 09-11-2005, 05:05 PM
Guest Re: Average Function Help... 09-11-2005, 05:05 PM
michaelas Thanks BenjieLop for your... 09-11-2005, 11:58 PM
BenjieLop Just change the "rec" in the... 09-12-2005, 12:22 AM
michaelas What I want to do is average... 09-12-2005, 11:25 AM
  1. #1
    Registered User
    Join Date
    08-24-2005
    Posts
    25

    Average Function Help Needed

    Hi,

    I'm trying to calculate average miles in my mileage log.
    Col. F = total miles for each day
    Col E = destination eg. store, supplyhouse, rec, auto, etc
    I want to total all the "rec" miles and average them in a single cell.
    Can anyone help? Thanks

    Michaelas

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    << Hi,

    I'm trying to calculate average miles in my mileage log.
    Col. F = total miles for each day
    Col E = destination eg. store, supplyhouse, rec, auto, etc

    I want to total all the "rec" miles >>

    =sumif(E1:E100,"rec",F1:F100)


    << and average them in a single cell. >>


    =sumif(E1:E100,"rec",F1:F100)/countif(E1:E100,"rec")


    Regards.
    BenjieLop
    Houston, TX

  3. #3
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    To determine the average of your non "rec" entries, simply change "rec" to "<>rec" so your formula will look like this:


    =sumif(E1:E100,"<>rec",F1:F100)/countif(E1:E100,"<>rec")


    Regards.

  4. #4
    Registered User
    Join Date
    08-24-2005
    Posts
    25
    That did it! Thanks BenjieLop!

    michaelas

  5. #5
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    You are welcome... I am just glad that I can help. Thanks for the feedback.

    Regards.

  6. #6
    KL
    Guest

    Re: Average Function Help Needed

    Hi michaelas,

    Try this ARRAY formula (confirm with Ctrl+Shift+Enter, not just Enter!!!):

    =AVERAGE(IF((E2:E100="rec")*(F2:F100<>""),F2:F100))

    Regards,
    KL


    "michaelas" <michaelas.1v7nii_1126469130.8463@excelforum-nospam.com> wrote
    in message news:michaelas.1v7nii_1126469130.8463@excelforum-nospam.com...
    >
    > Hi,
    >
    > I'm trying to calculate average miles in my mileage log.
    > Col. F = total miles for each day
    > Col E = destination eg. store, supplyhouse, rec, auto, etc
    > I want to total all the "rec" miles and average them in a single cell.
    > Can anyone help? Thanks
    >
    > Michaelas
    >
    >
    > --
    > michaelas
    > ------------------------------------------------------------------------
    > michaelas's Profile:
    > http://www.excelforum.com/member.php...o&userid=26573
    > View this thread: http://www.excelforum.com/showthread...hreadid=466654
    >




  7. #7
    Ragdyer
    Guest

    Re: Average Function Help Needed

    A couple of non-array formulas:

    Say data list is E2 to F100,
    And you enter the destination you're looking to average into G1:

    =SUMIF(E2:E100,G1,F2:F100)/COUNTIF(E2:E100,G1)

    OR

    =SUMPRODUCT((E2:E100=G1)*F2:F100)/COUNTIF(E2:E100,G1)

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "michaelas" <michaelas.1v7nii_1126469130.8463@excelforum-nospam.com> wrote
    in message news:michaelas.1v7nii_1126469130.8463@excelforum-nospam.com...
    >
    > Hi,
    >
    > I'm trying to calculate average miles in my mileage log.
    > Col. F = total miles for each day
    > Col E = destination eg. store, supplyhouse, rec, auto, etc
    > I want to total all the "rec" miles and average them in a single cell.
    > Can anyone help? Thanks
    >
    > Michaelas
    >
    >
    > --
    > michaelas
    > ------------------------------------------------------------------------
    > michaelas's Profile:

    http://www.excelforum.com/member.php...o&userid=26573
    > View this thread: http://www.excelforum.com/showthread...hreadid=466654
    >



  8. #8
    Registered User
    Join Date
    08-24-2005
    Posts
    25
    Thanks BenjieLop for your reply & formula. It worked great!

    Can you tell me how would I average all the daily work miles if all the destinations have different names?

    michaelas

  9. #9
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by michaelas
    Thanks BenjieLop for your reply & formula. It worked great!

    Can you tell me how would I average all the daily work miles if all the destinations have different names?

    michaelas
    Just change the "rec" in the formula with the destination of your choice. I hope I understood your question correctly.

    Regards.

  10. #10
    Registered User
    Join Date
    08-24-2005
    Posts
    25
    What I want to do is average all the work miles minus the Rec miles. (Rec - recreation)

    eg.
    Col A-F:

    5-Jul / Tue/ 64522/ 64542/ 20/ John - Meinecke St / Hayward
    6-Jul/ Wed/ 64542/ 64562/ 20/ George St. - San Luis
    7-Jul/ Thu/ 64562/ 64612/ 50/ John - Murray / Hayward Lumber/ De Cou
    8-Jul Fri 64612 64690 78 Creston CA - Peg's deck
    9-Jul Sat 64690 64776 86 Creston CA - Peg's deck
    10-Jul Sun 64776 64790 14 Rec

    I want to total all the work miles and compute the daily average, but subtract all the rec (recreation) miles. But each work day may have different names. Can I compute a formula to add up all the miles and then subtract the Rec miles?

    (In this eg. E= daily miles/F=destination. I had them switched around in my original question - sorry)
    Thanks for your help & replies, B. I hope this is clear what I want to do.

    michaelas

+ 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