+ Reply to Thread
Results 1 to 5 of 5

Count if formula with multiple conditions in same coloumn

  1. #1
    Registered User
    Join Date
    09-11-2014
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2013
    Posts
    12

    Count if formula with multiple conditions in same coloumn

    Hi all,

    I want to take the count of dates in column 1 if the relevant column 2 value is equal to "aa" or "bb" and the dates should be with the 2 days before today's date. please help

    9/11/2014 - aa
    9/11/2014 - aa
    9/11/2014 - bb
    9/5/2014 - aa
    9/10/2014 - cc
    9/10/2014 - dd
    9/8/2014 - ee


    I tried below formula but it didn't work

    =SUM(COUNTIFS(E16:E25,{"aa","bb"},C16:C25,{today()-24/24;today()-48/24}))

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Count if formula with multiple conditions in same coloumn

    Try (untested)

    in C1
    =SUMPRODUCT(((B1:B7="aa")+(B1:B7="bb"))*(A1:A7>TODAY()-2))*(A1:A7<TODAY())
    and copy down
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-11-2014
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2013
    Posts
    12

    Re: Count if formula with multiple conditions in same coloumn

    Hmmmmmm the answer should be 4, it gives me only 2

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Count if formula with multiple conditions in same coloumn

    The answer should be 3

    There are a total of four aas and bbs
    But only 3 of them are within the last 2 days.

    Change > to >= in the above

  5. #5
    Registered User
    Join Date
    09-11-2014
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2013
    Posts
    12

    Re: Count if formula with multiple conditions in same coloumn

    Thanks it worked

+ 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] countif formula for multiple conditions in the same coloumn
    By kazun909 in forum Excel General
    Replies: 28
    Last Post: 09-12-2014, 08:06 AM
  2. [SOLVED] Count each unique value in coloumn 'a' and sum values in coloumn 'b'
    By vipin717 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 05-06-2014, 05:25 AM
  3. Replies: 3
    Last Post: 07-08-2012, 05:25 AM
  4. Replies: 2
    Last Post: 07-01-2012, 03:54 AM
  5. Array formula to count based on multiple conditions
    By markrennolds in forum Excel General
    Replies: 1
    Last Post: 11-09-2010, 05:56 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