+ Reply to Thread
Results 1 to 10 of 10

Average Function Help Needed

Hybrid View

  1. #1
    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

  2. #2
    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.

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

    michaelas

  4. #4
    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.

+ 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