+ Reply to Thread
Results 1 to 3 of 3

Summing specific entries based on criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    08-03-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    22

    Summing specific entries based on criteria

    Hello again,

    I am trying to get a count of the number of meals that need to be prepared based on an order. So for instance an order is place from the 15-20 May for 5 lunchs each day obviously the total lunches for 15-20 is 5 if thats the only order placed. I have a long (and growing) list of numbers that I am trying to have a new way to calculate.

    Currently I have used sumproduct to count the entries that fall within a range but I cannot figure out the proper format to be able to add the Values of each meal.

    As I have probably made that very confusing attached is a sample.

    Thanks!
    Attached Files Attached Files
    Last edited by KaitMacN; 08-29-2011 at 08:48 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Summing specific entries based on criteria

    Hi

    Have a look at the attachment to see if it's okay. I've used a slightly different layout to the one you suggested on the Count tab because it makes the formula easier.
    =SUMPRODUCT(--($B$2:$B$7<=$I2),--($C$2:$C$7>=$I2),D$2:D$7)
    Attached Files Attached Files
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    08-03-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Summing specific entries based on criteria

    Thanks for the help, that did the trick!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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