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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,221,526
Messages
6,160,341
Members
451,638
Latest member
MyFlower

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