Find Multiple instances of Single Criterion in Row & Return To a Single Col
In that case, we'll only need the following references for the defined
names...
Select G7
Insert Name Define
Array1:
=ROW(INDEX(Sheet2!$A:$A,1):INDEX(Sheet2!$A:$A,COLU MNS(Data)))
Array2:
=INDEX(Data,ROWS(Sheet2!$G$7:$G7),0)
Array3:
=10^(Array1*LEN(Sheet2!G$5+1))/10^LEN(Sheet2!G$5+1)
Then, use the following formula instead...
G7, copied down and across:
=IF(ISNUMBER(MATCH(G$5,Array2,0)),SUBSTITUTE(SUMPR ODUCT(LARGE(IF(Array2=G
$5,G$5+1,0),Array1),Array3),G$5+1,G$5),"")
....confirmed with CONTROL+SHIFT+ENTER.
Hope this helps!
In article <60013fc07d3b4@uwe, "Sam via OfficeKB.com" <u4102@uwe
wrote:
Hi Domenic,
Thank you so much. Absolutely Brilliant!!
Is there any chance that the Results returned to Sheet2 can mimic the Row
position of the Source Data?
Using the Sample Data Layout;
Row 76 translates to Row 7, 1st Row of Results - Sheet2.
Row 77 translates to Row 8, 2nd Row of Results - Sheet2.
Row 78 translates to Row 9, 3rd Row of Results - Sheet2.
So, if I was looking for Criterion 3, the first Result returned should be
from Row 78 to Sheet2 Row 9, the 3rd Row on Sheet2 (Results). All Results to
be returned to their corresponding Row Position on Sheet2.
Sample Data Layout:
Columns I J K L M N O P Q R
Row No.76 1 0 1 1 0 1 1 1 0 1
Row No.77 2 2 3 2 1 2 2 0 0 0
Row No.78 3 3 3 3 3 0 3 0 3 0
Cheers,
Sam
|