+ Reply to Thread
Results 1 to 3 of 3

Count based on multiple criteria - CHALLENGING EQUATION

Hybrid View

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Count based on multiple criteria - CHALLENGING EQUATION

    The attached workbook is a product inventory system. The goal is to track 2 things that would be stored in two separate sheets in the same workbook.

    Sheet 1(named Product Schedule): List of products, the locations each product is available at, the dates of availability for each product

    Sheet 2 (named Product Calendar): Complete list of locations, that shows the # of products available during each date at each location.


    The top row of cells in the 2nd sheet are dates. So A1 = 1/1/2012 A2= 1/2/2012... etc

    Under each date should be an equation that says something along the lines of:

    count location if date range euqals or is between the start and end dates.

    Please Help. If you need further insight please message me. Would be greatly appreciated if someone could solve inside workbook and send back to me.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,290

    Re: Count based on multiple criteria - CHALLENGING EQUATION

    B3: =SUMPRODUCT(--('Product Schedule'!$B$3:$B$22=$A3),--('Product Schedule'!$C$3:$C$22=B$2))

    Copy across and down


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Count based on multiple criteria - CHALLENGING EQUATION

    Hmm? I make it ...
    =SUMPRODUCT(('Product Schedule'!$B$3:$B$50=$A3)*(B$2>='Product Schedule'!$C$3:$C$50)*(B$2<='Product Schedule'!$D$3:$D$50))
    Have I had a beer to many tonight ...
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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