Multiple Occurrences

10
Person Pointless Thing First, get position in list Das Hof Talented Michael Bluth L Thom Yorke Amnesiac 4 1 Michael Bluth Arrested 7 2 Das Hof Knightrider #VALUE! N Thom Morello Raging #VALUE! Michael Bluth Teen Wolf Too #VALUE! Thom Yorke Double Rainbow Nick Drake Melody King SMALL(IF($A$1:$A$20=$E$ Thom Yorke Bendy Das Hof Baywatcher INDEX($B$1:$B$20,SMALL( Thom Yorke Limb King Elliot Smith Will hunter IFERROR(INDEX($B$1:$B$2 Tim Thom Deed poll Dwight Yorke Baller Das Hof Spongebob Das Hof Krautrock Thom Yorke Erasing Thom Morello Night Watcher Thom Thompson Tintin 1 2 3 1

description

Excel Sample Program

Transcript of Multiple Occurrences

Person Pointless Thing First, get position in listDas Hof Talented Michael Bluth Look up valueThom Yorke Amnesiac 4 1st resultMichael Bluth Arrested 7 2nd resultDas Hof Knightrider #VALUE! No more resultThom Morello Raging #VALUE!Michael Bluth Teen Wolf Too #VALUE!Thom Yorke Double RainbowNick Drake Melody King SMALL(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2)Thom Yorke BendyDas Hof Baywatcher INDEX($B$1:$B$20,SMALL(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2),1)Thom Yorke Limb KingElliot Smith Will hunter IFERROR(INDEX($B$1:$B$20,SMALL(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2),1),"")Tim Thom Deed pollDwight Yorke BallerDas Hof SpongebobDas Hof KrautrockThom Yorke ErasingThom Morello Night WatcherThom Thompson Tintin

1

2

3

1

Then, wrap in INDEX to lookup Finally, use IFERROR to hide #NUM!Look up value Michael Bluth Michael Bluth1st result Arrested Arrested2nd result Teen Wolf Too Teen Wolf TooNo more result #VALUE!

#VALUE!#VALUE!

SMALL(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2)

INDEX($B$1:$B$20,SMALL(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2),1)

IFERROR(INDEX($B$1:$B$20,SMALL(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2),1),"")

1 2 3

Finally, use IFERROR to hide #NUM!

Person Pointless Thing DescendingDas Hof Talented Das HofThom Yorke Amnesiac 17Michael Bluth Arrested 16Das Hof Knightrider 11Thom Morello Raging 5Michael Bluth Teen Wolf Too 2Thom Yorke Double RainbowNick Drake Melody KingThom Yorke BendyDas Hof BaywatcherThom Yorke Limb King LARGE(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2)Elliot Smith Will hunterTim Thom Deed poll SMALL(IF(IFERROR(SEARCH($G$2,$A$1:$A$20)>0,FALSE),ROW($A$1:$A$20)),ROW()-2)Dwight Yorke Baller (need to use IFERROR to force non matching SEARCH results to a FLASE, otherwise the Array won't evaluateDas Hof Spongebob SMALL(IF(LEFT($A$1:$A$20,LEN($I$2))=$I$2,ROW($A$1:$A$20)),ROW()-2)Das Hof KrautrockThom Yorke Erasing SMALL(IF(IFERROR(SEARCH($K$2,RIGHT($A$1:$A$20,LEN($A$1:$A$20)-SEARCH(" ",$A$1:$A$20)))>0,FALSE),ROW($A$1:$A$20)),ROW()-2)Thom Morello Night WatcherThom Thompson Tintin

1

4

1

2

3

Partial Text Left side Partial Text in Right sideElliot Michael Thom

13 4 14#VALUE! 7 20#VALUE! #VALUE! #VALUE!#VALUE! #VALUE! #VALUE!#VALUE! #VALUE! #VALUE!

LARGE(IF($A$1:$A$20=$E$2,ROW($A$1:$A$20)),ROW()-2)

SMALL(IF(IFERROR(SEARCH($G$2,$A$1:$A$20)>0,FALSE),ROW($A$1:$A$20)),ROW()-2)(need to use IFERROR to force non matching SEARCH results to a FLASE, otherwise the Array won't evaluateSMALL(IF(LEFT($A$1:$A$20,LEN($I$2))=$I$2,ROW($A$1:$A$20)),ROW()-2)

SMALL(IF(IFERROR(SEARCH($K$2,RIGHT($A$1:$A$20,LEN($A$1:$A$20)-SEARCH(" ",$A$1:$A$20)))>0,FALSE),ROW($A$1:$A$20)),ROW()-2)

2 3 4

(need to use IFERROR to force non matching SEARCH results to a FLASE, otherwise the Array won't evaluate

SMALL(IF(IFERROR(SEARCH($K$2,RIGHT($A$1:$A$20,LEN($A$1:$A$20)-SEARCH(" ",$A$1:$A$20)))>0,FALSE),ROW($A$1:$A$20)),ROW()-2)

Person Region Pointless Thing value 1 value 2Das Hof Germany Talented Das Hof GermanyThom Yorke UK Amnesiac 2Michael Bluth US Arrested 17Das Hof US Knightrider #VALUE!Thom Morello UK Raging #VALUE!Jef Buckley US Voice #VALUE!Thom Yorke UK Double RainbowNick Drake UK Melody KingThom Yorke UK BendyDas Hof US BaywatcherThom Yorke UK Limb KingElliot Smith US Will hunterTim Thom UK Deed pollDwight Yorke UK BallerDas Hof US SpongebobDas Hof Germany KrautrockThom Yorke UK ErasingThom Morello UK Night WatcherThom Thompson UK Tintin

value 1 value 2 Names recieved separatelyDas Hof US Thom Morello

5 611 1916 #VALUE!

#VALUE! #VALUE!#VALUE! #VALUE!

Person Region Pointless ThingDas Hof Germany TalentedThom Yorke UK Amnesiac First NameMichael Bluth US Arrested SurnameDas Hof US Knightrider RegionThom Morello UK RagingJef Buckley US VoiceThom Yorke UK Double RainbowNick Drake UK Melody KingThom Yorke UK BendyDas Hof US BaywatcherThom Yorke UK Limb KingElliot Smith US Will hunterTim Thom UK Deed pollDwight Yorke UK BallerDas Hof US SpongebobDas Hof Germany KrautrockThom Yorke UK ErasingThom Morello UK Night WatcherThom Thompson UK Tintin

Person Region Pointless ThingDas Das Hof US KnightriderHof Das Hof US BaywatcherUS Das Hof US Spongebob