Help with Stat tracking

murphyryans

New Member
Joined
Aug 24, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am trying to work on summarizing some statistics from an excel spreadsheet my entire team is using. But 700 lines in, there are some inconsistencies. Hoping you can help me find a formula to build to make up for these inconsistencies.

What I am trying to track whether a job was completed and by which Line Center/PMO. When i created the initial formula =COUNTIFS(E:E, J8, B:B, "Yes") it depended on our team both checking the box that says yes or no on Column B and selecting the Line Center from the drop down. What happened was people were making slight mistakes in the line center names. Instead of selecting "Gresham" They were typing "Gresham " and when that inconsistency happened it no longer showed that as a stat for Gresham. Besides me going through every line to ensure they selected the correct name, are there any other methods to have excel help me out. In my mini sheet I have a few inconsistencies to see if you all can help.
Minisheet.xlsx
ABCDEFGHIJKLM
1DateYesWorked Hot (Y/N)RegionLine Center/PMOCrew calledCreated POSS62%Percentage crew called
26/1/2023YesNoEasternGreshamNo
36/1/2023YesNoEasternB&M PMONoNoMonthly Jobs Canceled/Rescheduled5
46/1/2023YesYesEasternB&M PMOYesNoPercentage Canceled/Rescheduled14%
56/1/2023YesNoEasternDJs PMOYesNo
66/1/2023YesNoEasternGreshamNoNo"No"Yes
76/1/2023YesNoEasternDJs PMOYesNoContractors315
86/1/2023YesYesEasternDJs PMOYesB&M PMO37
96/1/2023YesNoEasternDJs PMOYesNoDJs PMO08
106/1/2023YesNoEasternPSCNoNoHenkels & McCoy00
116/1/2023YesNoEasternDJs PMOYesNoILB PMO00
126/1/2023YesNoEasternDJs PMOYesNoPotelco PMO00
136/1/2023YesYesSouthernSunsetNoWilson Const. PMO00
146/1/2023YesNoSouthernNewbergYesSturgeon PMO00
156/1/2023NoNoSouthernB&M PMONo
166/1/2023NoNoSouthernB&M PMONoEastern05
176/1/2023NoNoSouthernB&M PMONoGresham03
186/1/2023YesNoSouthernB&M PMONoOC00
196/1/2023YesNoSouthernB&M PMOYesPSC02
206/1/2023YesNoSouthernWoodburn YesCore00
216/1/2023YesYesSouthernSunsetNo
226/1/2023YesNoSouthernNewbergYesWestern24
236/1/2023YesNoSouthernB&M PMONoNoBeaverton01
246/1/2023YesNoSouthernNewberg YesSunset23
256/1/2023YesNoWesternWilsonvilleYesNo
266/1/2023NoNoWesternSunsetNo
276/1/2023NoNoWesternSunsetYesSouthern02
286/1/2023YesNoWesternBeavertonYesNewberg02
296/1/2023YesNoWesternSunsetNoSalem00
306/1/2023YesYesWesternB&M PMOYesSheridan00
316/2/2023YesNoEasternB&M PMOYesWoodburn00
326/2/2023YesNoEasternGreshamYesNo
336/2/2023YesNoEasternDJs PMOYesNo
346/2/2023YesNoEasternPSCYesNoTotal52631
356/2/2023YesNoEasternDJs PMOYesNo
June 2023
Cell Formulas
RangeFormula
K1K1=COUNTIF(F2:F2330, "Yes")/COUNTA(F2:F2330)
K3K3=COUNTIF(B:B, "No")
K4K4=COUNTIF(B:B, "No")/(COUNTIF(B:B, "Yes")+COUNTIF(B:B, "No"))
K7:L7K7=SUM(K8:K14)
K8:K14,K28:K31,K23:K24,K17:K20K8=COUNTIFS(E:E, I8, B:B, "No")
L8:L14,L28:L31,L23:L24,L17:L20L8=COUNTIFS(E:E, I8, B:B, "Yes")
K16:L16,K27:L27K16=SUM(K17:K20)
K22:L22K22=SUM(K23:K24)
K34:L34K34=SUM(K27,K22,K16,K7)
M34M34=SUM(L34,K34)
Cells with Data Validation
CellAllowCriteria
B1:C35ListYes, No
E:EListBeaverton, Core, Gresham, Newberg, OC, PSC, Salem, Sheridan, Sunset, Wilsonville, Woodburn, B&M PMO, DJs PMO, ILB PMO, Henkels & McCoy, Potelco PMO, Sturgeon PMO, Wilson Const. PMO
F:GListYes, No
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
for the extra spaces you could change your countif criteria1 to ""&CELL&"*"
as shown below
Book1
IJKL
6"No"Yes
7Contractors315
8B&M PMO37
9DJs PMO08
10Henkels & McCoy00
11ILB PMO00
12Potelco PMO00
13Wilson Const. PMO00
14Sturgeon PMO00
15
16Eastern05
17Gresham03
18OC00
19PSC02
20Core00
21
22Western24
23Beaverton01
24Sunset23
25
26
27Southern04
28Newberg03
29Salem00
30Sheridan00
31Woodburn01
Sheet1
Cell Formulas
RangeFormula
K7:L7K7=SUM(K8:K14)
K8:K14,K28:K31,K23:K24,K17K8=COUNTIFS(E:E, ""&I8&"*",B:B, "No")
L8:L14,L28:L31,L23:L24,L17:L20L8=COUNTIFS(E:E, ""&I8&"*", B:B, "Yes")
K16:L16,K27:L27K16=SUM(K17:K20)
K18:K20K18=COUNTIFS(E:E, I18, B:B, "No")
K22:L22K22=SUM(K23:K24)
 
Upvote 1
Rather than typing the drop down list values directly into the "Source" box in the Data Validation pop up window, enter the list values in an empty column on your sheet or on a different sheet. Select the range in column E where you want the drop down list to appear and then in the Data Validation pop up window, select "List" in the "Allow" box, click on the "Source" box and then select the range where you manually entered the list values in an empty column. You will see the range containing the values entered in the "Source" box. This should prevent anyone from manually entering an incorrect value instead of selecting from the drop down list.
 
Upvote 1
Here is an example of what I think @mumps is asking you to try (also a photo of the data validation dialog).

Mr excel questions 55.xlsm
ABCDEHI
1DateYesWorked Hot (Y/N)RegionLine Center/PMO
26/1/2023YesNoEasternGresham
36/1/2023YesNoEasternB&M PMO
46/1/2023YesYesEasternB&M PMO
56/1/2023YesNoEasternDJs PMO
66/1/2023YesNoEasternGresham
76/1/2023YesNoEasternDJs PMOValidation List:
86/1/2023YesYesEasternDJs PMOB&M PMO
96/1/2023YesNoEasternDJs PMODJs PMO
106/1/2023YesNoEasternPSCHenkels & McCoy
116/1/2023YesNoEasternDJs PMOILB PMO
126/1/2023YesNoEasternDJs PMOPotelco PMO
136/1/2023YesYesSouthernSunsetWilson Const. PMO
146/1/2023YesNoSouthernNewbergSturgeon PMO
156/1/2023NoNoSouthernB&M PMOGresham
166/1/2023NoNoSouthernB&M PMOOC
176/1/2023NoNoSouthernB&M PMOPSC
186/1/2023YesNoSouthernB&M PMOCore
196/1/2023YesNoSouthernB&M PMOBeaverton
206/1/2023YesNoSouthernWoodburn Sunset
216/1/2023YesYesSouthernSunsetNewberg
226/1/2023YesNoSouthernNewbergSalem
236/1/2023YesNoSouthernB&M PMOSheridan
246/1/2023YesNoSouthernNewberg Woodburn
256/1/2023YesNoWesternWilsonvilleWilsonville
266/1/2023NoNoWesternSunset
276/1/2023NoNoWesternSunset
286/1/2023YesNoWesternBeaverton
296/1/2023YesNoWesternSunset
306/1/2023YesYesWesternB&M PMO
316/2/2023YesNoEasternB&M PMO
326/2/2023YesNoEasternGresham
336/2/2023YesNoEasternDJs PMO
346/2/2023YesNoEasternPSC
356/2/2023YesNoEasternDJs PMO
Murphyryans
Cells with Data Validation
CellAllowCriteria
E2:E35List=$I$8:$I$25


1692902942321.png
 
Upvote 1
Thanks for input and help.
I am pretty close to having what I need. I cant actually post this spreadsheet because of sensitive information, but on the month I am currently working on after adding the data validation. My stats are showing

40 No's
533 Yes
14 left blank
587 Total

But, what the spreadsheet actually has
71 No's
566 Yes's
17 left blank
654 total

I also tried to do the data validation to the Yes/No Columns as well. Wondering if anyone has any other suggestions?

My Current Formula is =COUNTIFS(E2:E654, ""&N8&"*", B2:B654, "Yes")
 
Upvote 0
you can make dummy data. Actually Mr. Excel encourages using dummied up data.
Also, I don't see your values in N8. And your original formula was using J8 as the search criteria, not N8. What has changed?
Why do you have a zero length string in front of N8 in the formula? Maybe you need/want an asterisk there as well?
 
Last edited:
Upvote 0
Sorry to cause confusion. I created a semi dummy sheet in my upload. The name of each of my Line centers is N not J

I applied what I saw @ExceLoki recommend so that I could maybe help the any initial misspelling or additional spaces. Was that not right @awoohaw ?
 
Upvote 0
Well, I can't see your line centers since you have not posted anything new.
You're asking the forum to recreate your scenario with a prose description and that can lead to misunderstanding and errors.
I do appreciate that you provided expected results. Still don't see a column N in anything you've provided.
As far as @ExceLoki 's suggested formula, yes you do emulate that. But you still apparently have errors (again without seeing what is in N). AND... I suggested an edit to it.
Please provide a new set of dummy data. (In my example I posted I hid all extraneous columns, which you can do too.)
And you only need 15-20 rows, as long as you have data that will "hit" your search criteria.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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