+ Reply to Thread
Results 1 to 2 of 2

Counting of Cells according to several criteria

  1. #1
    Registered User
    Join Date
    04-08-2016
    Location
    Innsbruck, Austria
    MS-Off Ver
    Office 2013
    Posts
    1

    Question Counting of Cells according to several criteria

    Hey folks,

    Product Size Date
    A 1 1.1.10
    A 1 1.2.10
    B 1 1.2.10

    My table has several thousand rows. I want to have an overall count based on the following rules:
    • DON'T count when sizes stay the same, but Products Change
    • Count as soon as sizes change; EXCEPT when Product A OR B with size 5 was produced directly before Product C size 4
    • Count when there is a gap of GREATER OR EQUAL 2 days between two entries (e.g. 1.1.10 -> next entry is 4.1.10 --> COUNT! )

    Is there a formula or function for that purpose?

    Thanks in advance for your help.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Counting of Cells according to several criteria

    Assuming that your data is in columns A to C, with headers in row 1, data starting in row 2.

    In D3 enter this helper formula, then copy it down to the end of your table. (Or a different column if 'D' is already in use).

    =OR((C3-c2)>=2,AND(B3<>B2,NOT(AND(B3=4,A3="C",B2=5,OR(C2="A",C2="B")))))+0

    Then sum the column with the helper formula to get your count result.

+ 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] Counting cells that meet multiple single criteria as variable criteria
    By BillBasil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2016, 10:33 AM
  2. Replies: 4
    Last Post: 06-13-2014, 07:08 PM
  3. Counting 7th cells under certain criteria
    By sallylongden in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-28-2012, 03:08 PM
  4. Replies: 3
    Last Post: 03-01-2012, 06:17 AM
  5. Replies: 5
    Last Post: 12-31-2011, 06:10 AM
  6. Counting Cells with multiple criteria.One criteria supporting wild
    By Azhar Saleem in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 07:06 AM
  7. [SOLVED] Counting Cells with multiple criteria.One criteria supporting wild
    By Azhar Arain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 05:06 AM

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