lookup in unsorted table, column and row unknown (No VBA, please)

Bratamoli

New Member
Joined
Jul 20, 2018
Messages
19
I've copied snippets of my data from two tabs: "Pokémon" & "Fast TMs".
As an example, we'll use Nidoking, who's pokédex number is 34.

I need cell I16 in the first table to find Nidoking's # ("34") in the second table (cell M6) and return the name of his Move ("Iron Tail"). I'll then need a formula for cell J16 that can ignore the first move we found (which will go in the "FM1" column) and find his 2nd Move (for the "FM2" column). The "CM" columns are for their Charged Moves, and each pokémon (with one exception) has 1 to 6 Charged Moves available to them. (Now that I look closer at it, Mew [#151] would probably be a better example since it has three separate moves in the example data set...)

I've tried for a while now to Google the answer to this, but everything I'm finding requires known row and/or column numbers or sorted data unless you write the formula to repeat itself for each individual column or row. (except maybe some form of Index-Match, but I tried =MATCH(I5,I5:BO67,0) in cell A1 of the 2nd table and got #N/A, so .... not sure what that's about)

I'm sure there's likely a good way to accomplish this using VBA, but I have not yet learned VBA, so it'll be a little impractical in the future when new characters are released into the game and I need to update things. That said, if the only practical way to do this is VBA-based, then now may be the time for me to start learning.

Thank you in advance for your help. I thought I was B0$$ at Excel until I found myself trying to help people here one day, and I quickly learned that you geniuses are just a couple steps ahead of me. ;) So I'm confident someone here will be able to help me figure this out.

PS -
Bonus Points if the formula returns "Ste - Iron Tail" instead.
Major Bonus Points for the formula that returns Mew's 2nd move in the data set ("Dra - Dragon Tail").
More Bonus Points if you figure out the "alola" thing for me, but I'm pretty confident I can get that part working if I can just get the lookup portion figured out.


A1BCDEFGHIJKLMN
2Gen#NameCPTypeType2#FMFM1FM2#CMCM1CM2CM3
32nd172Pichu376Electric13
41st25Pikachu787Electric24
51st26Raichu2025Electric24
6Alolan26.1Alolan
Raichu
2143ElectricPsychic23
71st27Sandshrew1194Ground24
81st28Sandslash2328Ground23
9Alolan27.1Alolan
Sandshrew
1219IceSteel23
10Alolan28.1Alolan
Sandslash
2366IceSteel23
111st29Nidoran♀736Poison23
121st30Nidorina1218Poison23
131st31Nidoqueen2338PoisonGround23
141st32Nidoran♂739Poison23
151st33Nidorino1252Poison23
161st34Nidoking2386PoisonGround23
172nd173Cleffa620Fairy25

<tbody>
</tbody>

--------------------------------------------------

A1BCDEFGHIJKLMNOPQRSTUVW
2from:https://pokeassistant.com/main/movelist
3
4TypeFast MovesDPSPowerEnergyCast TimePokémon
5SteSteel Wing13.81160.8s27717228515114214918250227
6SteIron Tail13.61571.1s3053063362083487147148248
7DraDragon Tail13.61591.1s306330149350373383384151103 alola208249
8FigCounter13.31280.9s2572862882973085768107360214386185202217232
9RocRock Throw13.31270.9s299337953381852133777474 alola75 alola76 alola218
10WatWaterfall13.31681.2s119130160230319342365382350151
11RocSmack Down13.31270.9s

<tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
All I really need is a formula to lookup the nth occurrence of a value in the unsorted table below (columns "I" through "W") and return the Move Name in column C (and maybe also the 3 character "Type" in column B, if possible).
The 2nd occurrence of "151" (answer: "Dra - Dragon Tail") would be perfect.

A1BCDEFGHIJKLMNOPQRSTUVW
2from:https://pokeassistant.com/main/movelist
3
4TypeFast MovesDPSPowerEnergyCast TimePokémon
5SteSteel Wing13.81160.8s27717228515114214918250227
6SteIron Tail13.61571.1s3053063362083487147148248
7DraDragon Tail13.61591.1s306330149350373383384151103 alola208249
8FigCounter13.31280.9s2572862882973085768107360214386185202217232
9RocRock Throw13.31270.9s299337953381852133777474 alola75 alola76 alola218
10WatWaterfall13.31681.2s119130160230319342365382350151
11RocSmack Down13.31270.9s

<tbody>
</tbody>
 
Last edited:
Upvote 0
Update: I'm trying to see if I can embed an ISNUMBER(MATCH( array formula inside a formula that will look for the Nth "True."
Here's a partial screenshot of what I have so far.

https://ibb.co/jV7X6z
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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