Hi J.Ty.,
maybe my example was wrong. Here is other:
[...]
Now, when I select Austria, then in first field I have list with Year. When I select year = 2000 I should have list:
AB, AG (for Austria).
Note, that "2000 Year" can occur couple times (for other country).
Not sure about the purpose. Taking it up as creating a sublist on demand...
[TABLE="width: 286"]
<COLGROUP><COL style="WIDTH: 64pt; mso-width-source: userset; mso-width-alt: 3043" width=86><COL style="WIDTH: 48pt" span=3 width=64><COL style="WIDTH: 78pt; mso-width-source: userset; mso-width-alt: 3697" width=104><TBODY>[TR]
[TD="class: xl64, width: 86, bgcolor: white"]
Country[/TD]
[TD="class: xl64, width: 64, bgcolor: white"]
Year[/TD]
[TD="class: xl64, width: 64, bgcolor: white"]
Code[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"] [/TD]
[TD="class: xl65, width: 104, bgcolor: white"]
Austria[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Austria[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
1999[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
A1[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl63, width: 104, bgcolor: white"]
2000[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Austria[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
2000[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
AB[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"]
CODES[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Austria[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
2000[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
AG[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl63, width: 104, bgcolor: white"]
AB[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Austria[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
2001[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
ZZ[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl63, width: 104, bgcolor: white"]
AG[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Austria[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
2002[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
ZH[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Poland[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
1998[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
A4[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Poland[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
2000[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
AZ[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Poland[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
2000[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
AF[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl63, width: 86, bgcolor: white"]
Poland[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
2001[/TD]
[TD="class: xl63, width: 64, bgcolor: white"]
KL[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
</TBODY>[/TABLE]
E4, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX($C$2:$C$10,SMALL(IF($A$2:$A$10=E$1,IF($B$2:$B$10=E$2,
ROW($C$2:$C$10)-ROW($C$2)+1)),ROWS($C$2:C2))),"")