+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Help with AVERAGE formula based on values in other cells

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    51

    Help with AVERAGE formula based on values in other cells

    Hello, I'm stuck with something I am trying to calculate in a spreadsheet and hoping someone can help.

    I want to work out the average of a set of data in column AM. However, I only want to include the cells in AM when the corresponding values in column D and column AN both equal the word "Yes". Please can someone explain how I would write this formula?

    I hope this makes sense

    Many Thanks
    Last edited by milliemoo; 10-25-2011 at 05:36 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Help with AVERAGE formula based on values in other cells

    Try:

    =AVERAGE(IF(($D$2:$D$200="Yes")*($AN$2:$AN$200="Yes"),$AM$2:$AM$200))

    Confirmed with Ctrl+Shift+Enter as it's an array formula.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,736

    Re: Help with AVERAGE formula based on values in other cells

    You can use AVERAGEIFS in Excel 2007

    =AVERAGEIFS(AM:AM,AN:AN,"Yes",D:D,"Yes")
    Audere est facere

  4. #4
    Registered User
    Join Date
    10-03-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Help with AVERAGE formula based on values in other cells

    Fantastic....thank you so much for your swoft responses. The AVERAGEIFS fun ction works perfectly!

  5. #5
    Registered User
    Join Date
    10-03-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Help with AVERAGE formula based on values in other cells

    Apologies as I do not know how to mark this as SOLVED

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Help with AVERAGE formula based on values in other cells

    To mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.

    Dom

+ 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