Here is my way...
I have used named ranges and Frequency function
Named Ranges by selecting any cell in first row
DataArray
Formula:
=IF((Table1[job number]=Sheet1!$F4)*(Table1[helper column]>0),MATCH(Table1[task code],Table1[task code],0))
BinArray
Formula:
=IF((Table1[job number]=Sheet1!$F4)*(Table1[helper column]>0),MATCH(Table1[task code],Table1[task code],0),0)
Formula in G3
Formula:
=SUM(FREQUENCY(DataArray,BinArr))
I have explained this frequency construction in Post No. 39 in the link below:-
http://www.excelforum.com/excel-form...ml#post3958135
Check the attached file:-
Example__1.xlsx
Bookmarks