+ Reply to Thread
Results 1 to 3 of 3

SUMIFS, COUNTIFS, Using a date as one of the critera

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    85

    SUMIFS, COUNTIFS, Using a date as one of the critera

    The following formula works well to add the numbers in column Y for rows that meet the Month criteria determined in cell H57.

    So a 1 in H57, adds all the numbers in Y for January.

    =SUMPRODUCT(1*(MONTH(D2:D10000)=H57),Y2:Y100

    I would like to add another criteria to this to check column A for an employee number. So I could find the total of Bob's Y,s for January
    And then a similar formula to find the average of Bob's Y's for January

    I tried adding various concoctions using Sumifs but cant seem to nail it down..

    Any Ideas?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,136

    Re: SUMIFS, COUNTIFS, Using a date as one of the critera

    hi there. a sample excel file with your desired results would help. say employee no in I57, maybe:
    =SUMPRODUCT((A2:A10000=I57)*(MONTH(D2:D10000)=H57),Y2:Y10000)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-18-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    85

    Re: SUMIFS, COUNTIFS, Using a date as one of the critera

    Benishiryo, Sorry for not getting back to you, I was dragged in another direction but this works great! Thank you for your help...

    I will try and expand on this to get your formula to average the result.

    This be useful in building interactive dashboard type reports! Thank you!

+ 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. Countifs and Sumifs VBA code with criterias between 2 date range
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2013, 07:08 AM
  2. [SOLVED] SUMIFS with <> Critera
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2013, 01:35 PM
  3. [SOLVED] Returning sum based on row and column critera (SUMIFS??)
    By PERE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2013, 11:55 PM
  4. Sumifs, countifs 2007
    By somesoldiers in forum Excel General
    Replies: 1
    Last Post: 03-28-2011, 04:28 PM
  5. Sumifs and countifs
    By JohnGault82 in forum Excel General
    Replies: 3
    Last Post: 02-03-2011, 05:31 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