+ Reply to Thread
Results 1 to 7 of 7

Countifs with either OR

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    5

    Countifs with either OR

    Folks,

    I have a quick question,

    Column 1 Column2 Column 3
    A 1/02/2013 1/01/2013
    B 2/02/2013 2/01/2003
    C 3/12/2012 3/01/2013
    C 1/02/2013 12/12/2013
    A 2/02/2013 23/03/2012
    F 3/12/2012 4/05/2012
    B 1/02/2013 1/04/2013
    H 2/02/2013 2/03/2013


    Thought of using Countifs to

    - count cells in column1 containing A or C or F
    - Count all corresponding cells in Columns 2 & 3 containing dates before 1/1/13

    Can you please help.

    Thanking you in advance.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Countifs with either OR

    Do you mean..

    =SUM(COUNTIFS($A$1:$A$8,{"A","C","F"},$B$1:$B$8,"<"&DATE(13,1,1),$C$1:$C$8,"<"&DATE(13,1,1)))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countifs with either OR

    Hi,

    =SUMPRODUCT((ISNUMBER(MATCH(A2:A9,{"A","C","F"},0))*((B2:B9<DATEVALUE("01/01/2013"))+(C2:C9<DATEVALUE("01/01/2013")))))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countifs with either OR

    I read it as counting all dates less than 01/01/2013, whether they occur in column B or column C.

    Apologies if this is not correct.

    Regards

  5. #5
    Registered User
    Join Date
    07-23-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Countifs with either OR

    Thanks all for you help

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Countifs with either OR

    We are glad.. that you came back.. and feedback the response..

    Here Memebers work hard.. (without any pay) to solve other's query..
    Your feedback's is the only payment that they expect..

    If the query is solved.. Please mark the thread as Solved.. May be you will not able to do this.. as 2 day passed.. Just post here.. a line with Solved...

    ADMIN / MOD will do that for you..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  7. #7
    Registered User
    Join Date
    07-23-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Countifs with either OR

    SOLVED!

    Thank you very much! the responses I got were great and very helpful, Appreciate all the help I received from all those that have contributed.

    kind regards

+ 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. COUNTIFS OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  2. [SOLVED] Need help with COUNTIFS
    By rival2031 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2013, 07:55 PM
  3. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  4. [SOLVED] Countifs
    By Lasse Moe in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-18-2012, 08:00 AM
  5. Replies: 0
    Last Post: 12-16-2011, 09:01 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