Countif with matching dates

italy16

New Member
Joined
May 9, 2014
Messages
34
Hello All - How do I write an equation (preferably in gsheets) that says if Col A = Category 1 and Column B is in the same month and year as the rows across the top then count column B? Thanks so much
 

Attachments

  • JSQ_cost_of_sales_team_xlsx_-_Google_Sheets.png
    JSQ_cost_of_sales_team_xlsx_-_Google_Sheets.png
    9.2 KB · Views: 3

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
What do you mean count column B?

This will flag matches: =IF(AND($A2="CATEGORY 1",MONTH($B2)=MONTH(C$1),YEAR($B2)=YEAR(C$1)),"MATCH","")
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top