Countifs to find year from Date

kjonesie07

New Member
Joined
Apr 7, 2015
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Looking for a formula for 3 criteria in excel to count if all are TRUE:

Number of entries that equal a specific region
Number of entries that say "Yes"
Number of entries that have a date submitted in 2024

Column A is the Regions: Eastern, Western, Southern
Column B is Accepted, with Yes or No in the cells
Column C is Date Submitted (date format is MM/DD/YY)

I would like to know how many Accepted entries there were for the Western Region in 2024.
 

Attachments

  • Screenshot 2024-09-12 160735.png
    Screenshot 2024-09-12 160735.png
    43.8 KB · Views: 4

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try:

Book1
ABCDEFGH
1RegionAcceptedDateRegionAcceptedYearCount
2EasternYes1/1/2023WesternYes20240
3WesternNo2/15/2024
4SouthernYes6/7/2024
5EasternYes6/8/2024
6WesternNo6/9/2024
7SouthernYes6/10/2024
8EasternYes1/1/2023
9WesternNo2/15/2024
10SouthernYes6/7/2024
11EasternYes1/1/2023
12WesternNo1/1/2022
13SouthernYes6/7/2024
Sheet4
Cell Formulas
RangeFormula
H2H2=COUNTIFS(A2:A13,E2,B2:B13,F2,C2:C13,">="&DATE(G2,1,1),C2:C13,"<="&DATE(G2,12,31))
 
Upvote 0
Solution
Try:

Book1
ABCDEFGH
1RegionAcceptedDateRegionAcceptedYearCount
2EasternYes1/1/2023WesternYes20240
3WesternNo2/15/2024
4SouthernYes6/7/2024
5EasternYes6/8/2024
6WesternNo6/9/2024
7SouthernYes6/10/2024
8EasternYes1/1/2023
9WesternNo2/15/2024
10SouthernYes6/7/2024
11EasternYes1/1/2023
12WesternNo1/1/2022
13SouthernYes6/7/2024
Sheet4
Cell Formulas
RangeFormula
H2H2=COUNTIFS(A2:A13,E2,B2:B13,F2,C2:C13,">="&DATE(G2,1,1),C2:C13,"<="&DATE(G2,12,31))
Thank you so much, that worked!
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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