Countifs With Months

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
923
Office Version
  1. 365
Hi,

I have the following tables:

Book1
CDEFGHIJKLMNO
2Table 1Table 2Table 3
3BranchSales StaffDateBranchFebruaryMarchAprilBranchFebruaryMarchApril
4TexasMark8/2/2022Texas000Texas100
5MaineJavier7/2/2022Maine000Maine100
6IllinoisJuan5/4/2022Illinois000Illinois001
7IowaKenny5/3/2022Iowa000Iowa010
8VirginiaJoan9/4/2022Virginia000Virginia001
Sheet1
Cell Formulas
RangeFormula
H4:J8H4=COUNTIFS($C$4:$C$8,$G4,$E$4:$E$8,H$3)


1) Table 1 is the raw data
2) Table 2- I am trying to summarize the count of sales staffs recorded for the branch based on the month. However my current formula is not showing the correct results
3) Table 3 - This is an example of the correct result.

Appreciate any help to modify the current formula to show the desired results.
 
2 things.
1. I only see one table in your sample.
2. Is this meant for Excel or Google sheets ?

ALSO, see my Post #9.
 
Upvote 0
Solution

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
hi,

There is two table and and you choose to download and then can be viewed in Excel ( File >> Download >> Microsoft Excel)

1649475060684.png
 
Upvote 0
What date system do you use?
If you are using dd/mm/yyyy then none of those dates are in Feb, Mar or Apr
 
Upvote 0
Hi Fluff and Jtakw,

Yes, I rectified the date format accordingly and now it works. My apologies for the inconvenience. Thank you for the solution and have a great day.
 
Upvote 0
You're welcome, glad you sorted it out.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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