+ Reply to Thread
Results 1 to 3 of 3

AVERAGEIFS with Date Wildcards

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010
    Posts
    82

    AVERAGEIFS with Date Wildcards

    Hi all,

    I've written a formula that returns the average based on two dates that a user inputs into a couple of cells. The formula looks like this:
    Please Login or Register  to view this content.
    The dates are on the Dashboard sheet in B13 and C13. The formula works fine when there are dates in the respective cells, my problem is when the cells are left blank or have the default value of "---"; in this instance I want to average everything, however I keep getting a #DIV/0! error.

    Can anyone suggest where my formula is faulty?

    TIA,

    FermentedR
    Last edited by Fermented Reptile; 12-06-2016 at 06:55 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: AVERAGEIFS with Date Wildcards

    The dates are really numbers, and you can't use the wildcard "*" to match them - hence there are no matches and you get the #DIV/0 error. Instead of using "*", try ">0".

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-30-2011
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: AVERAGEIFS with Date Wildcards

    That works a treat. Much appreciated - thanks Pete!

+ 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. averageifs() using date range - not working
    By lampropeltis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2015, 02:09 PM
  2. AVERAGEIFS with date range condition
    By dariatest.test in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-11-2015, 09:55 AM
  3. AVERAGEIFS Formula with Date Range and Matching a Name
    By luvnwatts6 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-09-2014, 12:47 PM
  4. Averageifs.
    By lokpal.panwar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2014, 07:09 AM
  5. [SOLVED] AverageIfs, Max and Min
    By Odie2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2012, 07:57 PM
  6. STDEV from AVERAGEIFS using date ranges
    By BAT3 in forum Excel General
    Replies: 4
    Last Post: 05-31-2012, 07:18 PM
  7. Averageifs
    By Dgates in forum Excel General
    Replies: 2
    Last Post: 04-06-2010, 07:50 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