Count how many unique Operations Sequences have been completed

VBE313

Well-known Member
Joined
Mar 22, 2019
Messages
686
Office Version
  1. 365
Platform
  1. Windows
How can I count Operations Complete in this scenario? I need to get the unique Completed Operation Sequences per Name (Column H). I don't know what formula I could use in H2. Does anyone have any ideas how I could count unique values that only have "Completed" in the 'Completed?' column? The formulas in F2,F3 and G2 are in a table below the data table.

Snag_3558e4bb.png



NameQtyOperation SequenceCompleted?Completed QtyFirst of Name?Total Operations
Ethan405Completed20Yes4
Ethan405Completed10
Ethan405Completed5
Ethan405Completed5
Ethan4010Completed10
Ethan4010Completed10
Ethan4010Completed20
Ethan4015Completed8
Ethan4015Completed8
Ethan4015Completed8
Ethan4015Completed8
Ethan4015Completed8
Ethan4020Completed20
Ethan4020Completed20
Emily305Completed10Yes6
Emily305Completed5
Emily305Completed5
Emily305Completed10
Emily3010
Emily3020
Emily3030
Emily3040
Emily3050


Formula in G2=IF([@[First of Name?]]="Yes",COUNTA(UNIQUE(FILTER([Operation Sequence],[Name]=[@Name]))),"")
Formula in F2=IF(COUNTIF(A2:$A$2,A2)=1,"Yes","")
Formula in F3=IF(COUNTIF(A$2:$A3,A3)=1,"Yes","")
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Maybe
Excel Formula:
=IF([@[First of Name?]]="Yes",COUNTA(UNIQUE(FILTER([Operation Sequence],([Name]=[@Name])*([Completed?]="Completed")))),"")
 
Upvote 0
Solution
This works if a specific sequence number is all the same. So if there are four '5's, rows 2-5, they are all listed as completed. If not, it'll be a problem. I don't know why at this point.

MrExcelPlayground.xlsm
ABCDEFGH
1NameQtyOperation SequenceCompleted?Completed QtyFirst of Name?Total OperationsCompleted Unique Ops
2Ethan405Completed20Yes44
3Ethan405Completed10   
4Ethan405Completed5   
5Ethan405Completed5   
6Ethan4010Completed10   
7Ethan4010Completed10   
8Ethan4010Completed20   
9Ethan4015Completed8   
10Ethan4015Completed8   
11Ethan4015Completed8   
12Ethan4015Completed8   
13Ethan4015Completed8   
14Ethan4020Completed20   
15Ethan4020Completed20   
16Emily305Completed10Yes61
17Emily305Completed5   
18Emily305Completed5   
19Emily305Completed10   
20Emily3010   
21Emily3020   
22Emily3030   
23Emily3040   
24Emily3050   
Sheet30
Cell Formulas
RangeFormula
F2F2=IF(COUNTIF(A2:$A$2,A2)=1,"Yes","")
G2:G24G2=IF(F2="Yes",COUNTA(UNIQUE(FILTER(C2:C24,A2:A24=A2))),"")
H2:H24H2=IF(F2="Yes",SUMPRODUCT(--($A$2:$A$24=A2),--($D$2:$D$24="Completed"),--($C$2:$C$24<>OFFSET($C$2:$C$24,1,0))),"")
F3:F24F3=IF(COUNTIF(A$2:$A3,A3)=1,"Yes","")
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,148
Members
449,066
Latest member
Andyg666

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