+ Reply to Thread
Results 1 to 6 of 6

Summing With Criteria

  1. #1
    Registered User
    Join Date
    02-10-2016
    Location
    Cleveland, OH
    MS-Off Ver
    2010
    Posts
    4

    Unhappy Summing With Criteria

    I'm trying to create a spreadsheet with summing based on criteria and it's just not seeming to work. My spreadsheet is basically a calendar separated by month and day and within each day, the user has the option to enter a time digit (like 4) and a type (like PTO). I have the spreadsheet setup how I want it but the totals are not working as I would like. I have total columns setup and want to make some sort of formula that says total all those listed as PTO, total all those listed as Sick, etc. I tried SUMIF but it's giving me errors, I think because they are in the same rows. I have attached a small cutout version of my spreadsheet for reference and help. Any help would be so much appreciated! Attachment 445914

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Summing With Criteria

    In B2 of Sheet2 copied down

    =SUMPRODUCT(('2016'!$B$5:$AZ$9),--('2016'!$C$5:$BA$9=A2))

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Summing With Criteria

    I went with the array formula:

    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    02-10-2016
    Location
    Cleveland, OH
    MS-Off Ver
    2010
    Posts
    4

    Re: Summing With Criteria

    That one didn't work, I think because went too general & didn't reference the PTO. Thank you though.

  5. #5
    Registered User
    Join Date
    02-10-2016
    Location
    Cleveland, OH
    MS-Off Ver
    2010
    Posts
    4

    Re: Summing With Criteria

    YES!!!!! This worked beautifully!! Thank you so incredibly much!!!!

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Summing With Criteria

    >>That one didn't work, I think because went too general & didn't reference the PTO

    Yes, PTO was in A2. See attachment
    Attached Files Attached Files

+ 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. Summing for over criteria
    By wolfdemon710 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2015, 02:56 PM
  2. Replies: 2
    Last Post: 06-03-2015, 12:53 PM
  3. [SOLVED] summing based on a criteria but the criteria is not the format i want
    By uimhirADo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-01-2013, 04:16 PM
  4. [SOLVED] Summing with Criteria
    By Phoenix888 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-22-2012, 01:05 PM
  5. Summing to a criteria
    By pickslides in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2011, 12:35 AM
  6. Summing up values that match criteria.:particular criteria.
    By rmacttu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2009, 04:21 AM
  7. Summing per Criteria
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2008, 10:49 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