+ Reply to Thread
Results 1 to 4 of 4

Looking to make a averageif formula based on a criteria.

  1. #1
    Registered User
    Join Date
    07-14-2021
    Location
    Ontario, Canada
    MS-Off Ver
    365
    Posts
    1

    Looking to make a averageif formula based on a criteria.

    I have been trying to make a averageif formula that is based on a criteria but haven't been successful.

    I'm having trouble sharing the attachment of the sheet.

    What I am trying to do is calculate the average between two columns based on a criteria. I am trying to find in all row that meet the criteria in sheet 2 (someone will enter the start date, end date and specific model family. So when someone put "august 6, 2021" to "august 21, 2021".. model - "steamers"... It will pull from sheet 1 .. column E the steamers and all the order date and completion date between the date range provided and calculate the average day in production that will be reflected in sheet 2 under average.
    Attached Images Attached Images

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,861

    Re: Looking to make a averageif formula based on a criteria.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-04-2015
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    4

    Re: Looking to make a averageif formula based on a criteria.

    The start and end dates on sheet 2, is that an order date range?

  4. #4
    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: Looking to make a averageif formula based on a criteria.

    Try this in F2 of Sheet2:

    =IFERROR(AVERAGEIFS(Sheet1!C:C,Sheet1!E:E,B4,Sheet1!F:F,"<="&B",Sheet1!M:M,">="&D2),"Not valid")

    Next time attach a sample Excel workbook, rather than a picture of one - instructions on how to do this are given in the yellow banner at the top of the screen.

    Hope this helps.

    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. Formula With Nth Values Using AVERAGEIF With Criteria
    By swordswinger710 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 20
    Last Post: 06-13-2018, 03:18 PM
  2. Formula With Nth Values Using AVERAGEIF With Criteria
    By swordswinger710 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2018, 12:00 PM
  3. AverageIf Formula with 2 criteria
    By lostinaformula in forum Excel General
    Replies: 3
    Last Post: 03-14-2018, 05:57 PM
  4. Averageif for the top 70,80,90% and based on a criteria
    By skate1991 in forum Excel General
    Replies: 16
    Last Post: 05-06-2015, 12:54 PM
  5. averageif formula with multiple criteria
    By CPitta in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-08-2013, 12:56 PM
  6. AverageIf based on different criteria
    By caseman in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-16-2013, 02:18 PM
  7. AverageIf based on another columns criteria
    By AllenMead in forum Excel General
    Replies: 7
    Last Post: 09-06-2010, 12:46 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