+ Reply to Thread
Results 1 to 4 of 4

Adding totals that occured during a month from a list

  1. #1
    Registered User
    Join Date
    04-26-2014
    Location
    maryland
    MS-Off Ver
    excel 2013
    Posts
    8

    Adding totals that occured during a month from a list

    I am trying to get a count by month of the people who are invited to seminars and who shows, rsvps, and doesn't show etc. I'm attaching a new sample with the new tab seminars and then the hoped for result grid on the metrics tab. If anyone can help me with this I would appreciate it.

    Based on the tutorial you linked for me previously, I feel like a sumproduct could be used again. But again I seem to be lost when trying to pull the "month" out of the date. I suppose I could set the date up in 3 cells making day, month, and year 3 different columns, but that feels clumsy.
    Attached Files Attached Files
    Last edited by sugar824; 01-08-2018 at 11:16 PM. Reason: Altered title and question to be more relevant since the question was split from the original and link to previous post.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Adding totals that occured during a month from a list

    First things first...

    B17 through B21
    • Change those cells to 1/1/2017, 2/1/2017, 3/1/2017, etc.
      Then apply a custom format

    Data Range
    B
    C
    D
    E
    F
    16
    Invited
    RSVP'd
    Attended
    No show
    17
    Jan
    305
    240
    266
    39
    18
    Feb
    261
    204
    233
    28
    19
    Mar
    386
    329
    363
    23
    20
    Apr
    0
    0
    0
    0
    21
    May
    0
    0
    0
    0

    Custom Format
    • Right click cell/s (or Ctrl + 1)
    • Format Cells
    • Number
    • Custom
    • Type: mmm

    Now paste in C17 across and down... =SUMPRODUCT(--(MONTH($B17)=MONTH(Seminars!$A$2:$A$10)),Seminars!B$2:B$10)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    04-26-2014
    Location
    maryland
    MS-Off Ver
    excel 2013
    Posts
    8

    Re: Adding totals that occured during a month from a list

    That worked perfectly. I think now seeing the first Sumproduct and this one, I get it. So in the first one you helped me with we did the double unary on both to get a logical multiplication where when both are true 1*1 gives us 1 and it counts them. Where as in the second the first is turned into a logical 1,0 and the second is left alone so if true it gives me each number back and adds but zeros the others.
    Thank you for helping with this. I will add these to my long list of learned things for future projects.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Adding totals that occured during a month from a list

    Thank you for helping with this.
    You are very welcome and your explanation sounds spot on. Best of luck with the rest of your project.

+ 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. COUNTIF while a condition is met
    By sugar824 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2017, 10:05 PM
  2. [SOLVED] Countif's with if condition
    By geliedee in forum Excel General
    Replies: 2
    Last Post: 07-13-2015, 05:37 AM
  3. Excel 2007 : Countif with AND condition
    By mklunenberg in forum Excel General
    Replies: 1
    Last Post: 02-13-2012, 12:02 PM
  4. Countif for more than one condition
    By karan in forum Excel General
    Replies: 4
    Last Post: 09-18-2009, 08:11 AM
  5. Countif condition a or condition b....
    By solnajeff in forum Excel General
    Replies: 1
    Last Post: 08-23-2009, 12:32 AM
  6. countif condition
    By xtrmhyper in forum Excel General
    Replies: 3
    Last Post: 05-31-2005, 11:05 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