I Just cant figure this out, COUNTSIF I think!!

ijones2932

New Member
Joined
Aug 10, 2023
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi, can anybody help with this please!

So I need a count by facilitator (Column G) when someone is coming up to or has reached 3 months (Column H) it shouldn't count after that date. So the count for IJ will be 0 as we are past that date

This would be repeated with a count by facilitator for 9 months and the count would be 5 for IJ as they are all before the 9 month mark but I just cant get my head around it!

Then I would need a count by how many are coming up to 12 months by facilitator.

I hope this make sense as I've been baffled for 2 days trying to figure this out so I've had to reach out



,
1691657114656.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(G:G,G3,H:H,">="&TODAY(),H:H,"<="&EDATE(TODAY(),3))
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(G:G,G3,H:H,">="&TODAY(),H:H,"<="&EDATE(TODAY(),3))
Thank you but I'm getting 0 back as the count but that could be because the 3 month one and all are over 3 month so i've changed the rows to reflect the 9 month column and still getting 0 but I also need to count by facilitator i.e IJ SG etc from column G

=COUNTIFS(G:G,G3,J:J,">="&TODAY(),J:J,"<="&EDATE(TODAY(),3))
 
Upvote 0
For the 9months you need to change the 3 in the Edate function to 9
 
Upvote 0
In that case can you post some sample data that includes the formula.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
In that case can you post some sample data that includes the formula.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
I really do appreciate your help, unfortunately I cant install the add in as its a work computer! I will see if I can install via my phone
 
Upvote 0
You will not be able to use it on a phone as it uses VBA.

If you select col J & change the format to General what do you see?
 
Upvote 0
You will not be able to use it on a phone as it uses VBA.

If you select col J & change the format to General what do you see?
I will have to drag the old laptop out. thank you for your help
 
Upvote 0
You will not be able to use it on a phone as it uses VBA.

If you select col J & change the format to General what do you see?
Test Data.xlsx
ABCDEFGHIJKLMNOPQ
2SurnameFirst NameInduction DateWardSiteLine ManagerFacilitator3 Month1st Meeting Booked9 Month 2nd Meeting Booked12 Month3rd Meeting BookedCare Certificate ProgressAdditional Notes
3TestTest03/11/2022Mulberry WardPark HouseGeorgia JacksonIJ03/02/202303/08/202303/11/2023
4TestTest04/11/2022Delaney WardThe LowryJoseph OgbeideIJ04/02/202304/08/202304/11/2023
5TestTest05/11/2022JDUJDULindsay QuarSG05/02/202305/08/202305/11/2023
6TestTest06/11/2022Silverdale WardEdenfield UnitJenny HodgkissIJ06/02/202306/08/202306/11/2023
7TestTest07/11/2022Gardener Unit CAHMSKatie CoffeyIJ07/02/202307/08/202307/11/2023
8TestTest08/11/2022Salford Bramley StSalford Bramley StNigel FigginsJM08/02/202308/08/202308/11/2023Summary Sheet 3 Month Caseload
9TestTest09/11/2022Silverdale WardEdenfield UnitJenny HodgkissIJ09/02/202309/08/202309/11/2023NameAmount
10TestTest10/11/2022Wentworth HouseWentworth HouseMemory DuxberyAM10/02/202310/08/202310/11/2023AM3
11TestTest03/07/2023Bronte WardLaureate HouseChristabel LampteyAM03/10/202303/04/202403/07/2024IJ3
12TestTest03/07/2023Maple WardPark HouseDanielle HardyIJ03/10/202303/04/202403/07/2024SG3
13TestTest03/07/2023Prospect WardAtherleigh ParkCharlotte HammondAM03/10/202303/04/202403/07/2024JM3
14TestTest03/07/2023Cavendish WardLaureate HouseJoanna PeaseSG03/10/202303/04/202403/07/2024
15TestTest03/07/2023Rydal WardEdenfield UnitAdasa DixonJM03/10/202303/04/202403/07/2024
16TestTest03/07/2023Ullswater WardEdenfield UnitAndrew WoodwardJM03/10/202303/04/202403/07/2024Summary Sheet 9 Month Caseload
17TestTest03/07/2023Phoenix WardJunction 17 UnitMolly FarebrotherJM03/10/202303/04/202403/07/2024NameAmount
18TestTest03/07/2023Mulberry WardPark HouseGeorgia JacksonJM03/10/202303/04/202403/07/2024AM3
19TestTest03/07/2023A&E Liaison (Central)MRIChelsea DrakeJM03/10/202303/04/202403/07/2024IJ
20TestTest03/07/2023Laurel WardPark HouseJo Ann JagerSG03/10/202303/04/202403/07/2024SG
21TestTest03/07/2023Hayeswater WardEdenfield UnitLucy KenyonIJ03/10/202303/04/202403/07/2024JM
22TestTest03/07/2023Hayeswater WardEdenfield UnitLucy KenyonSG03/10/202303/04/202403/07/2024
23TestTest26/06/2023Cavendish WardLaureate HouseJoanna PeaseAM26/09/202326/03/202426/06/2024
24TestTest19/06/2023Ullswater WardEdenfield UnitAndrew WoodwardIJ19/09/202319/03/202419/06/2024
25TestTest12/06/2023Honeysuckle LodgeRivington UnitImogen NazJM12/09/202312/03/202412/06/2024
26TestTest06/06/2023Blake WardLaureate HouseLouise Rosario TullochJM06/09/202306/03/202406/06/2024
27TestTest06/06/2023Bronte WardLaureate HouseChristabel LampteyJM06/09/202306/03/202406/06/2024
28TestTest06/06/2023Keats WardMeadowbrook UnitKeeley OatsJM06/09/202306/03/202406/06/2024
29TestTest06/06/2023Delaney WardThe LowryJoseph OgbeideJM06/09/202306/03/202406/06/2024
Current Cohort
Cell Formulas
RangeFormula
E3:E29E3=XLOOKUP([@Ward],'Formula Data'!F:F,'Formula Data'!G:G)
F3:F29F3=XLOOKUP([@Ward],'Formula Data'!F:F,'Formula Data'!H:H)
Q10:Q13Q10=COUNTIFS('Current Cohort'!G:G,'Current Cohort'!G3,'Current Cohort'!H:H,">="&TODAY(),'Current Cohort'!H:H,"<="&EDATE(TODAY(),3))
Q18Q18=COUNTIFS('Current Cohort'!G:G,'Current Cohort'!G3,'Current Cohort'!J:J,">="&TODAY(),'Current Cohort'!J:J,"<="&EDATE(TODAY(),9))
H3:H29H3=EDATE(C3,3)
J3:J29J3=EDATE(C3,9)
L3:L29L3=EDATE(C3,12)
Cells with Data Validation
CellAllowCriteria
D3:D29List='Formula Data'!$F$2:$F$71
P9Any value
Q9Any value
P17Any value
Q17Any value
N3:N29List='Formula Data'!$A$8:$A$11
G3:G29List='Formula Data'!$B$7:$B$11
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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