Yes, show us a small set of sample data so we can be sure we are dealing with the correct data and layout. My signature block below has suggestions for showing small screen shots (like I have here) and where to test them. You can substitute any sensitive data.
Here's my sample data, with your adjusted formula. From what I understand, this is producing the results you want. If not please give more detail as well as some sample data and expected results.
Sheet1
* | I | J | K | L |
* | * | * | * | |
AU | * | Yes, please specify the index | Item 1 | |
US | * | Yes, please specify the index | Item 2 | |
US | * | No | Item 3 | |
CN | * | Yes, please specify the index | Item 4 | |
US | * | Yes, please specify the index | Item 5 | |
* | * | * | * | |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 56px;"><col style="width: 24px;"><col style="width: 208px;"><col style="width: 72px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="bgcolor: #CACACA, align: center"]7[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Sheet2
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 101px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | A2 | {=IFERROR(INDEX(Sheet1!L$2:L$200,SMALL(IF(Sheet1!I$2:I$200="US",IF(Sheet1!K$2:K$200="Yes, please specify the index",ROW(Sheet1!A$2:A$200)-ROW(Sheet1!A$2)+1)),ROWS(A$2:A2))),"")} |
<tbody>
</tbody> |
Formula Array:
Produce enclosing { } by entering
formula with CTRL+SHIFT+ENTER! |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4