INDEX help please...

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
My Jeanie is a small part of the area in my workbook that I’m looking at…There is data to the left and right of my sample and the named range OutputIndexHomeAway refers to all of this data.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
What I’m trying to do is:
<o:p></o:p>
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:place w:st="on"><st1:PlaceName w:st="on">Find</st1:PlaceName> <st1:PlaceName w:st="on">Swansea</st1:PlaceName> <st1:PlaceType w:st="on">City</st1:PlaceType></st1:place> in a named range called OutputTop
<o:p></o:p>
In the column next to <st1:place w:st="on"><st1:PlaceName w:st="on">Swansea</st1:PlaceName> <st1:PlaceType w:st="on">City</st1:PlaceType></st1:place> I want to find any “L”
<o:p></o:p>
I then eventually want to return the QPR and D next to one of the Ls and the <st1:place w:st="on"><st1:PlaceName w:st="on">Leicester</st1:PlaceName> <st1:PlaceType w:st="on">City</st1:PlaceType></st1:place> and W next to the other L…
<o:p></o:p>
In the Jeanie formulas I’ve “hand” written in the following ROW(FL4:FL28)-ROW(FL4)+1),ROW(1:1))}…
<o:p></o:p>
What I want to know is, what can I use in terms of another INDEX to replace the ROW(FL4:FL28) part of my formula please?

Output

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 141px"><COL style="WIDTH: 30px"><COL style="WIDTH: 30px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>FJ</TD><TD>FK</TD><TD>FL</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="TEXT-ALIGN: right">8</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: right">9</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: right">134</TD><TD style="TEXT-ALIGN: right">135</TD><TD style="TEXT-ALIGN: right">136</TD></TR><TR style="HEIGHT: 128px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="BACKGROUND-COLOR: #ffff00">Home</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">Swansea City</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">Away</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">16</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">23</TD><TD style="BACKGROUND-COLOR: #ffff00"> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD style="BACKGROUND-COLOR: #ffff00">Preston North End</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">W</TD><TD style="BACKGROUND-COLOR: #ffff00"> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD style="BACKGROUND-COLOR: #ffff00">Burnley</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">W</TD><TD style="BACKGROUND-COLOR: #ffff00"> </TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD style="BACKGROUND-COLOR: #ffff00">Coventry City</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">W</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">W</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</TD><TD style="BACKGROUND-COLOR: #ffff00">Scunthorpe United</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">W</TD><TD style="BACKGROUND-COLOR: #ffff00"> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</TD><TD style="BACKGROUND-COLOR: #ffff00">Derby County</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">D</TD><TD style="BACKGROUND-COLOR: #ffff00"> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</TD><TD style="BACKGROUND-COLOR: #ffff00">QPR</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">D</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">L</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD style="BACKGROUND-COLOR: #ffff00">Leicester City</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">W</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00">L</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>FJ1</TD><TD>{=SMALL(IF(INDEX(OutputIndexHomeAway,0,MATCH("Swansea City",OutputTop,0)+1)="L",ROW(FL4:FL28)-ROW(FL4)+1),ROW(1:1))}</TD></TR><TR><TD>FJ2</TD><TD>{=SMALL(IF(INDEX(OutputIndexHomeAway,0,MATCH("Swansea City",OutputTop,0)+1)="L",ROW(FL5:FL29)-ROW(FL5)+1),ROW(2:2))}</TD></TR></TBODY></TABLE></TD></TR><TR><TD>Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!
</TD></TR></TBODY></TABLE>

Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Has anyone got any ideas with this one please?
 
Upvote 0
What about this way...

FJ1 and FJ2 give me rows numbers...

I've used those row numbers in another Index to try and give me the team names however both have come out as "QPR"...

Any ideas where I'm going wrong please?

Excel Workbook
FJFKFL
18QPR
29QPR
3134135136
4HomeSwansea CityAway
51623
6Preston North EndW
7BurnleyW
8Coventry CityWW
9Scunthorpe UnitedW
10Derby CountyD
11QPRDL
12Leicester CityWL
Output
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top