+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Average if multiple criteria and contains

Hybrid View

  1. #1
    Registered User
    Join Date
    02-23-2012
    Location
    MN
    MS-Off Ver
    Excel 2007
    Posts
    3

    Average if multiple criteria and contains

    I am trying to find the average units sold on one sheet (sht1) of the data on a second sheet(sht2). Does anyone know how i could do this by year="2000" and Car="Contains 2DR"?

    I am sort of a novice with excel and do not fully understand the if functions. So any explanation or help would be greatly appreciated.

    Sht1:
    Year 2000 2Drs Avg Sold:
    Year 2000 4Drs Avg Sold:

    Sht2:
    Car Year Units Sold
    Ford Focus 2dr 2000 2
    Chrystler 300 4dr 2000 3
    Saturn ion 2dr 2000 2
    Honda Civic 2dr 2004 1

    Thanks!
    Attached Files Attached Files
    Last edited by AFmonaco; 02-24-2012 at 12:32 AM.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Average if multiple criteria and contains

    could you please attach an example set of data in an excel sheet?

  3. #3
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Average if multiple criteria and contains

    i recreated what i think is yoru data set in the attached, and used the AVERAGEIF formula. please take a look at my example to see if this is what you are working with.

    the formula used is: =AVERAGEIFS(Sheet2!C:C,Sheet2!A:A,"*"&B2&"*",Sheet2!B:B,A2)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-23-2012
    Location
    MN
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Average if multiple criteria and contains

    Thanks, I uploaded my data which is the same as what you created. However, in your attached file I am getting the result: "#value!" Do you think i have a setting wrong on my computer?

  5. #5
    Registered User
    Join Date
    02-23-2012
    Location
    MN
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Average if multiple criteria and contains

    Nevermind. It worked when i selected the cells and not the entire column. The microsoft site said the Range must have the same amount of columns as the criteria. Thanks!

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Average if multiple criteria and contains

    on your version of the file Sheets 1 and 2 were the opposit of mine, i have update the formula for your sheet.

    =AVERAGEIFS(Sheet1!C:C,Sheet1!A:A,"*"&B7&"*",Sheet1!B:B,A7)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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