Count Number of Times A Word Appears within a Month

wangaa11

New Member
Joined
Feb 28, 2020
Messages
43
Office Version
  1. 2016
Platform
  1. Windows
I have an excel document that has 5 different tabs and all the tabs have the same information. In a new tab I have a chart with the months in the top row and have the 5 departments along the side. I want to pull in the number of times "Yes" has appeared from the departments tab based on the month in the new tab.

I would upload an example but I am never able to.

Say for example, tab 1 through 5 is the departments with 10 columns of data, the date (dd,mmm,yyyy) is in column F and "yes" is in column H and I now want to count all the yes's from tab 1 in tab 6.

Appreciate any assistance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
If your source data can accept a helper column for the month formatted as text (and is laid out like I imagined), this would work:
Book1
FGHI
1DATESTATEMONTH
21-Jan-23YESJanuary
318-Aug-23NOAugust
414-Mar-23NOMarch
57-Feb-23YESFebruary
620-Oct-23NOOctober
711-Mar-23NOMarch
819-Mar-23YESMarch
930-Sep-23YESSeptember
103-Mar-23YESMarch
1110-Dec-23YESDecember
121-Jun-23NOJune
1316-Jan-23NOJanuary
1417-Feb-23NOFebruary
156-Dec-23NODecember
1622-Dec-23YESDecember
Dept1
Cell Formulas
RangeFormula
I2:I16I2=TEXT(F2,"mmmm")


Book1
ABCDEFGHIJKLM
2JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
3Dept1112000001002
4Dept2300011100001
5Dept3110100200101
6Dept4110001011101
7Dept5100120100101
Sheet6
Cell Formulas
RangeFormula
B3:M3B3=COUNTIFS(Dept1!$I$2:$I$16,B$2,Dept1!$H$2:$H$16,"Yes")
B4:M4B4=COUNTIFS(Dept2!$I$2:$I$16,B$2,Dept2!$H$2:$H$16,"Yes")
B5:M5B5=COUNTIFS(Dept3!$I$2:$I$16,B$2,Dept3!$H$2:$H$16,"Yes")
B6:M6B6=COUNTIFS(Dept4!$I$2:$I$16,B$2,Dept4!$H$2:$H$16,"Yes")
B7:M7B7=COUNTIFS(Dept5!$I$2:$I$16,B$2,Dept5!$H$2:$H$16,"Yes")
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,099
Members
449,096
Latest member
provoking

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