+ Reply to Thread
Results 1 to 2 of 2

Averageif criteria for variable mon/yr but ONLY if 3rd value is latest, unique in-month

  1. #1
    Registered User
    Join Date
    08-25-2014
    Location
    USA
    MS-Off Ver
    MS Office 2011
    Posts
    11

    Averageif criteria for variable mon/yr but ONLY if 3rd value is latest, unique in-month

    Hey guys,

    I'm struggling -- I'm trying to average all survey responses (numbers ONLY on a scale of 1-7) in August 2013 (as a cell referenced month & year) and I need to add a month specific de-dupe to the formula. I need to do all this in one formula with no helper columns such that I can change the month to July 2013 and everything will just recalculate.

    I have the following data per column:
    Column C = Date
    Column J = How a customer rates shipping speed on a scale of 1-7
    Column AB = Customer ID

    AVERAGE Criteria:
    - If column J = 1,2,3,4,5,6,7 (success)
    - If the date in column C is the same month as the date in C2 (success)
    - If the date in column C is the same year as the date in C2 (success)
    - Do not average N/A's (?)
    - Do not average Blanks (?)
    - If customer gives 2+ responses I only want to include the most recent one in the averagein August I want to average ONLY the numbered values (1 thru 7), ONLY in August, and ONLY for the most recent August date in a descending list from -- that is, newest to oldest (FAIL)


    Here is the formula I've been using:
    =ROUND((AVERAGEIFS(Sheet1!$J$1:$J$15000,Sheet1!$C$1:$C$15000,">"&EOMONTH($C$2,-1),Sheet1!$C$1:$C$15000,"<="&EOMONTH($C$2,0))),2)

    I've attached a XLSX file for reference and I highlighted duplicates Customer IDs in red and the rows actually I want to count in green.

    ExcelForum - jpeateDeDupe MEAN Formula-3.xlsx

    Thanks in advance for your help with this!!
    jpeate

  2. #2
    Registered User
    Join Date
    08-25-2014
    Location
    USA
    MS-Off Ver
    MS Office 2011
    Posts
    11

    Re: Averageif criteria for variable mon/yr but ONLY if 3rd value is latest, unique in-mont

    sktneer. figured this one out-- see formula below:

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


    http://www.excelforum.com/excel-form...ml#post3814686

+ 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. Replies: 18
    Last Post: 09-08-2014, 05:06 PM
  2. counting unique values across several criteria and date (month/year)
    By joannelittell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 06:19 AM
  3. unique occurances per multiple criteria (including month/year)
    By joannelittell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2013, 04:54 PM
  4. [SOLVED] Pivot Table Not Grouping by Month for Latest Month (groups > 7/20/2013)
    By justforthis1 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 09-04-2013, 12:28 PM
  5. Calculating frequency of unique texts within a month under multiple criteria
    By JustinHanamichi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2013, 08:35 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