+ Reply to Thread
Results 1 to 2 of 2

Search and give average

  1. #1
    Registered User
    Join Date
    02-20-2015
    Location
    Seattle, WA
    MS-Off Ver
    MS Office 2007
    Posts
    5

    Search and give average

    Ok, so I need a little help. I have a Table similar to this:

    VA OAKTON NA
    CA Fremont 1427
    CA Lake Arrowhead 254
    CA Emeryville 1857
    VA FALLS CHURCH 767
    CA Mission Viejo 358
    MD BALTIMORE 369
    CA San Clemente 340
    VA ARLINGTON 995
    WA Kirkland 877
    VA ARLINGTON 61
    MD ASHTON 269
    DC WASHINGTON 767
    TX Georgetown 205
    MD SILVER SPRING 443


    What I'm trying to figure out is a formula to go through, and give me the averages of each State. I was thinking the AverageIf, but I'm not too familiar with it, and when i tried I got an error, saying it was trying to divide by Zero. Any help would be appreciated. :-(

  2. #2
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: Search and give average

    Put this in D2 and copy it down to get a unique list of states:

    =IFERROR(INDEX($A$2:$A$15,MATCH(0,INDEX(COUNTIF($D$1:D1,$A$2:$A$15),0,0),0)),"")

    Then, in E2, put this to get the averages:

    =IFERROR(AVERAGEIF($A$2:$A$15,D2,$C$2:$C$15),"")
    If I have helped you, please add to my reputation!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need Excel formula that will give me a monthly average
    By mburke in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-20-2013, 09:23 AM
  2. Add column to give average in a hierarchical model
    By guy.zenx in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-17-2013, 08:02 AM
  3. [SOLVED] Formula to give an average time for month
    By davechamp1983 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-20-2012, 08:51 PM
  4. Getting Pivot Table to give monthly Average
    By ChemistB in forum Excel General
    Replies: 6
    Last Post: 09-27-2010, 02:03 PM
  5. Replies: 2
    Last Post: 06-02-2010, 05:12 PM

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