+ Reply to Thread
Results 1 to 2 of 2

Sumifs or Averageifs

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    Sumifs or Averageifs

    Point 1 was solved, by omitting the quotation marks. Now I have a follow question, and thought it would be helpful to include what I have been working with as a reference. Point 2 holds my actual question.

    1) I have created a small macro that allows me to change the date and have this be reflected in a cell, i.e. I press the spinner button up the date counts up, I press the spinner button down, the date goes down (by one day at a time). This is all returned in cell b4, with the date being displayed as xx/xx/xxxx. What I am trying to do is use the date as one criteria and a name as another to pull back data from another tab.

    For example, on my "Dashboard" tab I have a list of names in column A, and my date selection being shown in B4 (let's say I have it set to show the date as today).

    In another tab called "Data" I have the information I need to pull back, Column A has the dates the data occurred, column B the name of the person who the data belongs to, and in column C the data itself, which for this sake we will say is the number of calls that person took that day.

    Now back to my "Dashboard" tab, in cell B2 I would like to have excel look at the name in A2, and the date in B4(remember this is my date selector formula run by a macro) and pull back the matching calls taken in my "Data" tab. Essentially Excel would look at the name and date as the criteria, then go to the data tab, find that matching criteria and pull back the calls taken. This way I can use my spinner buttons to quickly see how many calls people are taking each day.

    I've tried using a sumifs formula, and an index formula, but nothing seems to be working.

    Here is the sumifs formula I am using with no avail:

    =SUMIFS(Data!$C$2:$C$86,Data!A2:$A$86,"&Dashboard!B4",Data!$B$2:$B$86,Dashboard!A23)





    2) Now Let's say I want to pull back a weekly average with the same scenario as before. I do have a weekly option for my date spinner that will display a week range in two cells, i.e. cell p2 contains 7/22/2014 and p3 contains 7/28/2014. How could I pull back the average amount of calls that person took in a week with that specified date range?

    This time Excel would need to look at the persons name in column A of my "Dashboard" then look at the date range as specified in cell p2 and p3, then go to my "data" tab. From here Excel would need to find all of the occurrences of that persons name in the week range, total the amount of calls that they took (in column C) and divide it by how ever many times their name appears in that week. I would assume an averageifs formula, I'm just not sure how to write it with a date range?

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Sumifs or Averageifs

    =AVERAGEIFS(Data!$C$2:$C$86,Data!A2:$A$86,">="&Dashboard!P2,Data!A2:$A$86,"<="&Dashboard!P3,Data!$B$2:$B$86,Dashboard!A23)

    I think I got some references wrong, but it's =AVERAGEIFS([Range of values to average],[Range of dates],">="&[start date],[Range of dates],"<="&[end date],[Range of names],[Name to lookup])

    Replace the brackets ([]) and the stuff in them with the relevant ranges/cells.
    Last edited by gak67; 08-05-2014 at 07:49 PM.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

+ 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. [SOLVED] Complex if Formulas AVERAGEIFS, SUMIFS, COUNTIFS
    By fredlo2010 in forum Excel General
    Replies: 5
    Last Post: 06-19-2014, 03:26 PM
  2. COUNTIFS and SUMIFS and AVERAGEIFS workbook linking
    By PJR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2014, 01:24 PM
  3. [SOLVED] AverageIFs / SumIfs
    By Decar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2013, 02:59 PM
  4. [SOLVED] AverageIFS (or even SUMIFS/COUNTIFS) on large data set
    By natetheblade in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-13-2013, 01:37 AM
  5. Index with sumifs and averageifs
    By LUNARCEA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-29-2013, 11:59 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