+ Reply to Thread
Results 1 to 3 of 3

Conditional Averages

Hybrid View

lwilde Conditional Averages 10-02-2008, 08:34 PM
mdbct Assuming your Location is in... 10-02-2008, 09:58 PM
sglife Assume your range is A1:B7 ... 10-02-2008, 10:43 PM
  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    Portland, OR
    Posts
    1

    Conditional Averages

    Hi,

    I'm trying to figure out if there is a formula I could use that will help me calculate the average of a group cells in one column based on the condition of another column. It's hard to explain, so I will show an example.

    All the data is on a one worksheet and I'm trying to show totals and averages on another worksheet.

    Location, Days
    17, 4
    17, 3
    17, 5
    26, 4
    26, 8
    26, 10
    26, 7

    On a different worksheet I would want to know what the average days are for each location. So is there a formula that I could use that will look at column A for a specified location number and then average all the days in column B for that location?

    I'm using Excel 2003 and have tried using the Average(if) but with no success.

    Thanks
    Last edited by lwilde; 10-03-2008 at 03:23 AM.

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    Assuming your Location is in cell D2

    =SUMIF(A2:A8,D2,B2:B8)/COUNTIF(A2:A8,D2)

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Assume your range is A1:B7

    use this formula
    
    =AVERAGE(IF(A1:A7=17,B1:B7))
    Press ctrl+shift +enter after modification
    I need your support to add reputations if my solution works.


+ 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. Excel 2007 : Conditional Formatting drag
    By Scott27 in forum Excel General
    Replies: 3
    Last Post: 04-25-2013, 09:15 AM
  2. Conditional formatting with VB
    By crizzle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2008, 01:26 PM
  3. Excel 2007 conditional formatting bug
    By jmessina in forum Excel General
    Replies: 0
    Last Post: 04-28-2008, 09:09 AM
  4. Find empty/null/blank cell in a conditional format
    By Dabooj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2008, 10:50 AM
  5. Calculating conditional averages
    By igeldard in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2006, 12: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