In our particular problem, we have a vertical array (the rows) and a
horizontal array (the digits). Coincidentally, in the example, each of the
arrays had 6 elements, but of course that doesn't hold when you increase the
number of rows.
I'm sure your right, wish I had heeded your advice first time you said
similar!
Clutching at straws and thinking aloud - it's possible in vba to extract a
row or column from a 2d array and assign to a 1d array using App Index. Do
you see any way to do similar here.
Eg, the following array entered into a column of cells, 6 in the example,
looks right, assuming I've correctly understood the problem this time
around!
=--(SUM(INDEX(--(VALUE(MID(A1:A6,{1,2,3,4,5,6},1))<=$B$1),ROW(A1:A6)))+ISNUM
BER(FIND($B$1,A1:A6))=7)
Appears to produce a 1 in each row that should be counted. This is along the
lines of what I mentioned in my previous to Bob, namely if 6 + 1 true's in a
row then count. But I can't figure how to "count" this into a single
formula.
Regards,
Peter T