+ Reply to Thread
Results 1 to 6 of 6

Average if two conditions are met.

  1. #1
    Registered User
    Join Date
    04-07-2017
    Location
    Santa Rosa Beach, Florida
    MS-Off Ver
    2016
    Posts
    30

    Average if two conditions are met.

    I am trying to get the average of column U if column AB says OCT and column AC says AVE. The AB section in the formula lights up as a range. The AC and U sections do not.

    =AVERAGEIF(AND((AB4:AB849,"OCT"),(AC4:AC849,"AVE")),U7:U849)

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Average if two conditions are met.

    Maybe this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    BSB

  3. #3
    Registered User
    Join Date
    06-02-2008
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    15

    Re: Average if two conditions are met.

    Hi, I tried this formula, but I get a Div error due to the date.
    I have list of different dates 01-Oct-18, 15-Oct-18 on left column and if I put one specific date in formula then it works, but partial date "oct" does not. Can you please help?

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Average if two conditions are met.

    How about

    =AVERAGEIFS(U7:U849,AB7:AB849,">=1OCT2018",AB7:AB849,"<=31OCT2018",AC7:AC849,"AVE")

  5. #5
    Registered User
    Join Date
    06-02-2008
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    15

    Re: Average if two conditions are met.

    Still same error, thinking that date is formatted wrong. I have it custom d/mm/yy.
    Would this affect calculation?
    Solved it with & before the date(using a cell reference to the date range)
    Eg "<="&$E$20,
    Where cell E20 has the date 01-Oct-18 (first day of month)
    And put end date in another cell
    ��Thank you
    Last edited by yvonnecat; 01-24-2019 at 10:23 PM.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Average if two conditions are met.

    Maybe try keyin 1/10/18 at AB3

    =AVERAGEIFS(U7:U849,AB7:AB849,">="&AB3,AB7:AB849,"<="&EOMONTH(AB3,0),AC7:AC849,"AVE")

+ 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. Average with conditions
    By Marcelo Carraro in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2013, 03:36 PM
  2. Average value on conditions
    By AGA in forum Excel General
    Replies: 2
    Last Post: 12-08-2010, 12:52 PM
  3. average with conditions
    By ravi_m5_2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2009, 12:05 PM
  4. Replies: 1
    Last Post: 03-12-2009, 06:33 AM
  5. Average and Conditions
    By ggutier49 in forum Excel General
    Replies: 5
    Last Post: 12-23-2008, 04:36 PM
  6. Average IF (two conditions)
    By girlofscience in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-29-2008, 02:57 PM
  7. average with 2 conditions
    By s in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-15-2006, 09:55 AM
  8. average with conditions
    By vinnie123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2006, 06:30 AM

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