+ Reply to Thread
Results 1 to 4 of 4

COUNT.IFS over multiple columns

Hybrid View

  1. #1
    Registered User
    Join Date
    12-12-2021
    Location
    Belgium
    MS-Off Ver
    O365
    Posts
    5

    COUNT.IFS over multiple columns

    Hi all,

    I have a Google Sheets document filled with raw data and would like to know per company name how many records they have published, between certain dates (= per month).


    Column A		Column B		Column C 		...
    Google			16/11/2021		Bla bla
    Windows			12/11/2021		Meh meh
    Microsoft		01/11/2021		Moh moh
    Google			03/11/2021		Lalalala
    Google			02/12/2021		Sololal
    Windows			01/09/2021		Lasoldo
    Microsoft		06/08/2021		Boe Boe
    Windows			07/07/2021		Boe La Bam
    Windows			03/04/2021		Shakalaka
    Google			06/09/2021		Tripiedipp

    I would like to know how many records "Google" has in the month november. If I use the =COUNT.IFS formula than the return would be 4 as the formula counts 2x Google in column A and 2x the month November in column B. I need the result to be 2 because Google has 2 records in november. If I were to do the same excercise for Microsoft the result would be 1.

    Anyone an answer to my, probably, simple question?

    Thanks,
    R.

  2. #2
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,187

    Re: COUNT.IFS over multiple columns

    Try this;

    =SUMPRODUCT(A$2:A$11="Google";Month(B$2:B$11)=11)
    Use comma instead of semicolon depending on your location settings.


    If you want to use COUNTIFS;

    =countifs(A$2:A$11;"Google";B$2:B$11;">=1/11/2021";B$2:B$11;"<=30/11/2021")
    Last edited by Haluk; 12-13-2021 at 04:38 AM.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: COUNT.IFS over multiple columns

    =SUMPRODUCT((A$2:A$11="Google")*(MONTH(B$2:B$11)=11))
    or
    =SUMPRODUCT((A$2:A$11="Google")*(MONTH(B$2:B$11)=11)*(YEAR(B$2:B$11)=2021)) if beyond one year

  4. #4
    Registered User
    Join Date
    12-12-2021
    Location
    Belgium
    MS-Off Ver
    O365
    Posts
    5

    Re: COUNT.IFS over multiple columns

    Thank you very much for the assistance both. I worked with the COUNTIFS as suggested by Haluk.

+ 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] Formula to count matches between multiple columns on different sheets w/ multiple criteria
    By RICK JAMES in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-05-2019, 03:28 PM
  2. Count which includes multiple columns including multiple criteria
    By Zou in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2017, 10:43 AM
  3. Replies: 1
    Last Post: 02-09-2017, 05:55 PM
  4. Replies: 6
    Last Post: 08-19-2015, 07:46 PM
  5. [SOLVED] Sort and Count Unique List Across Multiple Columns - Student Count
    By BuntyMac in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 08-17-2014, 07:00 AM
  6. Count instances of a string across multiple columns with multiple criteria
    By rpthoth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2012, 09:23 AM
  7. Replies: 2
    Last Post: 01-14-2009, 04: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