I need to make a countifs function work, it has to match the number of orders received from a specific country during a month.
Hello! I’m trying to make a COUNTIFS function work: In sheet 1 I have a table containing a column with dates, one with order numbers and one with the country.
Column A | Column B | Column B |
---|---|---|
01/01/2023 | ord #1 | Italy |
04/01/2023 | ord #2 | USA |
05/01/2023 | ord #3 | Italy |
09/01/2023 | ord #4 | USA |
I need to fill another table in sheet 2 where the countries are listed in rows and months in columns and I need the funcion to count how many orders arrived on that month from that country.
Column A | Column B |
---|---|
Italy | 2 |
USA | 2 |
I tried with this funcion:
=COUNTIFS(‘ORDINI SHOPIFY’!A:C;"Italy";’ORDINI SHOPIFY’!A:C;"/01/2023")
But the result is "0" for each cell. I’m not used to Google Sheets, I usually work with Excel and maybe there is something in the synthax that I didn’ get yet.
Thank you!
2
Answers
If your column
A
is text:Result:
If your column
A
is actual date:Result:
Adapt to your ranges and formula separator.
Here you have two options to generate the full chart with QUERY:
Or, if you need the full format of date, you can previously "convert" Column A to MM-YYYY (or as you need it):