Functional counting specific categories of data without adding to the data / Frequency

Bedlam

New Member
Joined
Feb 18, 2020
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hi

I'm hoping for some help to create some stats on the status of working through client jobs. First I must state that I can't use a pivot table or Visual Basic solution as there is a shared workbook which I don't control. I've simplified client on boarding in an example. I was wondering if there is some way I could generate the stats without having to resort to building column of functions alongside the data.

The basic scenario is that periodically client's data must be reviewed. A client may have one office (known as an entity) or may have many. It makes sense to perform all the checks simultaneously with a list for a team to work through. For simplicity I've assumed for each entity a review moves between stages 1-5 before turning complete. If a client has only one entity and that is complete then that client is fully complete. If a client has multiple entities and some but not all are complete then the client may be said to be partially complete. If a client has nothing that has reached complete then they have the status Nothing Completed.

I had previously used a CSE function elsewhere and wondered could something like this be used and adjusted
Example 1
Copy of PR tracker Feb 180220.xlsx
ABC
10Completed4626
Stats
Cell Formulas
RangeFormula
B10B10=COUNTIF('Feb 2020'!AN:AN,A10)
C10C10=SUM(--(FREQUENCY(IF('Feb 2020'!$AN$2:$AN$99999=A10,'Feb 2020'!$O$2:$O$99999),'Feb 2020'!$O$2:$O$99999)>0))


Example 2 - Sample data
Fully Complete.xlsx
ABCDEFG
1DataNotes to Explain
2ClientSub EntityStageClientStatus
31New YorkComplete1Fully Completei.e. all Sub Entities are complete
42London12Partially Completei.e. some Sub Entities are complete
52ParisComplete23Fully Completei.e. all Sub Entities are complete
623SydneyComplete463Partially Completei.e. some Sub Entities are complete
723DubaiComplete5555Nothing Completedi.e. no Sub Entities are complete
823New YorkComplete
9463London1Results
10463Paris2Clients5
11463Sydney3Fully Complete2i.e. Clients 1 and 23
12463TokyoCompletePartially Complete2i.e. Clients 2 and 463
135555Paris1Nothing Completed1i.e. Clients 5555
145555Singapore2
155555Tokyo3Complete4i.e. 4 Clients have a complete stage
165555New York4
175555London5
Sheet1


Hoping someone can suggest how best to do this. Thanks in advance.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Could you clarify: are you looking for formulas that populate F10 to F15? And is there anything else?
 
Upvote 0
Yes I’m looking for the results in those cells you mentioned
 
Upvote 0
Do you have access to the new functions (like FILTER or SEQUENCE) in your Office 365 subscription? If so, we can make some headway. If not, this looks too difficult to achieve (for me, at least).
 
Upvote 0
I haven't any more time tonight, so I'll paste this in hopes you do have access to the new functions.

Note that you will have to copy the formulas in J11:J15 rightways for as many columns as the formula in J19 spills to and so you will have to adjust the formulas in ColF and ColG to capture them all. The J19 formula is the unique list of clients transposed to columns so that the helper grid can be assembled.

The helper grid is probably a necessary evil here, and it could reside in another worksheet I think.

MrExcel posts17_a.xlsx
EFGHIJKLMN
8helper grid
9ResultsClients12234635555
10Clients5
11Fully Complete2i.e., Clients 1, 23TRUEFALSETRUEFALSEFALSE
12Partially Complete2i.e., Clients 2, 463FALSETRUEFALSETRUEFALSE
13Nothing Completed1i.e., Clients 5555FALSEFALSEFALSEFALSETRUE
14
15Complete4i.e., Clients 1, 2, 23, 463TRUETRUETRUETRUEFALSE
Sheet70
Cell Formulas
RangeFormula
J9:N9J9=TRANSPOSE(UNIQUE(A3:A17))
F10F10=COUNTA(UNIQUE(A3:A17))
F11:F13,F15F11=COUNTIFS(J11:N11,TRUE)
G11:G13,G15G11="i.e., Clients "&TEXTJOIN(", ",,IFERROR(J$9#/J11:N11,""))
J11:N11J11=SUM(--(FILTER($C3:$C17,$A$3:$A$17=J9)="complete"))=COUNTIFS($A$3:$A$17,J9)
J12:N12J12=AND(NOT(J11),NOT(J13))
J13:N13J13=SUM(--ISNUMBER(FILTER($C3:$C17,$A$3:$A$17=J9)))=COUNTIFS($A$3:$A$17,J9)
J15:N15J15=IF(SUM(--(FILTER($C3:$C17,$A$3:$A$17=J9)="complete")),TRUE)
Dynamic array formulas.
 
Upvote 0
Yes I’m looking for the results in those cells you mentioned
Do you have access to the new functions (like FILTER or SEQUENCE) in your Office 365 subscription? If so, we can make some headway. If not, this looks too difficult to achieve (for me, at least).
Just looked and I don't believe I've access to FILTER or SEQUENCE. I'm looking through your 1:53am post's formulas and I don't have UNIQUE either and I'm looking into https://www.get-digital-help.com/ho...ates-in-excel-from-one-column/#uniquedistinct
 
Upvote 0
I haven't any more time tonight, so I'll paste this in hopes you do have access to the new functions.

Note that you will have to copy the formulas in J11:J15 rightways for as many columns as the formula in J19 spills to and so you will have to adjust the formulas in ColF and ColG to capture them all. The J19 formula is the unique list of clients transposed to columns so that the helper grid can be assembled.

The helper grid is probably a necessary evil here, and it could reside in another worksheet I think.

MrExcel posts17_a.xlsx
EFGHIJKLMN
8helper grid
9ResultsClients12234635555
10Clients5
11Fully Complete2i.e., Clients 1, 23TRUEFALSETRUEFALSEFALSE
12Partially Complete2i.e., Clients 2, 463FALSETRUEFALSETRUEFALSE
13Nothing Completed1i.e., Clients 5555FALSEFALSEFALSEFALSETRUE
14
15Complete4i.e., Clients 1, 2, 23, 463TRUETRUETRUETRUEFALSE
Sheet70
Cell Formulas
RangeFormula
J9:N9J9=TRANSPOSE(UNIQUE(A3:A17))
F10F10=COUNTA(UNIQUE(A3:A17))
F11:F13,F15F11=COUNTIFS(J11:N11,TRUE)
G11:G13,G15G11="i.e., Clients "&TEXTJOIN(", ",,IFERROR(J$9#/J11:N11,""))
J11:N11J11=SUM(--(FILTER($C3:$C17,$A$3:$A$17=J9)="complete"))=COUNTIFS($A$3:$A$17,J9)
J12:N12J12=AND(NOT(J11),NOT(J13))
J13:N13J13=SUM(--ISNUMBER(FILTER($C3:$C17,$A$3:$A$17=J9)))=COUNTIFS($A$3:$A$17,J9)
J15:N15J15=IF(SUM(--(FILTER($C3:$C17,$A$3:$A$17=J9)="complete")),TRUE)
Dynamic array formulas.
I hadn't spotted the FILTERs in your solution. It seems this not going to be the solution for me yet as it looks like it is only available in a Beta version. I've been reading a little more and it seems like VBA can be used on shared workbooks and if so this might be the way ahead so I'm going to explore that. Thanks for your kind help.
 
Upvote 0
Here's one way to do it with the old functions:

Book1
ABCDEFG
1DataNotes to Explain
2ClientSub EntityStageClientStatus
31New YorkComplete1Fully Completei.e. all Sub Entities are complete
42London12Partially Completei.e. some Sub Entities are complete
52ParisComplete23Fully Completei.e. all Sub Entities are complete
623SydneyComplete463Partially Completei.e. some Sub Entities are complete
723DubaiComplete5555Nothing Completedi.e. no Sub Entities are complete
823New YorkComplete
9463London1Results
10463Paris2Clients5
11463Sydney3Fully Complete2i.e. Clients 1 and 23
12463TokyoCompletePartially Complete2i.e. Clients 2 and 463
135555Paris1Nothing Completed1i.e. Clients 5555
145555Singapore2
155555Tokyo3Complete4i.e. 4 Clients have a complete stage
165555New York4
175555London5
Sheet8
Cell Formulas
RangeFormula
F10F10=SUM(SIGN(FREQUENCY(A3:A17,A3:A17)))
F11F11=SUM(SIGN(FREQUENCY(IF(COUNTIFS(A3:A17,A3:A17,C3:C17,"Complete")=COUNTIFS(A3:A17,A3:A17),A3:A17),A3:A17)))
F12F12=F10-F11-F13
F13F13=SUM(SIGN(FREQUENCY(IF(COUNTIFS(A3:A17,A3:A17,C3:C17,"Complete")=0,A3:A17),A3:A17)))
F15F15=F10-F13
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Thanks Eric - I'll have a look tomorrow when I'm back in the office
 
Upvote 0
Here's one way to do it with the old functions:

Book1
ABCDEFG
1DataNotes to Explain
2ClientSub EntityStageClientStatus
31New YorkComplete1Fully Completei.e. all Sub Entities are complete
42London12Partially Completei.e. some Sub Entities are complete
52ParisComplete23Fully Completei.e. all Sub Entities are complete
623SydneyComplete463Partially Completei.e. some Sub Entities are complete
723DubaiComplete5555Nothing Completedi.e. no Sub Entities are complete
823New YorkComplete
9463London1Results
10463Paris2Clients5
11463Sydney3Fully Complete2i.e. Clients 1 and 23
12463TokyoCompletePartially Complete2i.e. Clients 2 and 463
135555Paris1Nothing Completed1i.e. Clients 5555
145555Singapore2
155555Tokyo3Complete4i.e. 4 Clients have a complete stage
165555New York4
175555London5
Sheet8
Cell Formulas
RangeFormula
F10F10=SUM(SIGN(FREQUENCY(A3:A17,A3:A17)))
F11F11=SUM(SIGN(FREQUENCY(IF(COUNTIFS(A3:A17,A3:A17,C3:C17,"Complete")=COUNTIFS(A3:A17,A3:A17),A3:A17),A3:A17)))
F12F12=F10-F11-F13
F13F13=SUM(SIGN(FREQUENCY(IF(COUNTIFS(A3:A17,A3:A17,C3:C17,"Complete")=0,A3:A17),A3:A17)))
F15F15=F10-F13
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
Thanks Eric that worked a treat. Now I need to figure out exactly how the bits and bobs work.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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