Vlookup based on Moving Target range

east3rd

New Member
Joined
Sep 8, 2008
Messages
39
Hi everyone,
Pulling my hair out today trying to figure this one out! I have a large reference doc where the given value I'm trying to locate can be found anywhere between columns J - U. From there I need to lookup the value in column AA, hence my vlookup range is somewhat dynamic. I am already using the following formula to locate the column number, for example:

=COLUMN(INDEX('[PPV_CRTC 2018-2019.xlsx]Movies'!J$1:U$1,SUMPRODUCT(MAX(('[PPV_CRTC 2018-2019.xlsx]Movies'!$J$2:$U$520=A2)*(COLUMN('[PPV_CRTC 2018-2019.xlsx]Movies'!$J$2:$U$520))))-COLUMN('[PPV_CRTC 2018-2019.xlsx]Movies'!$J:$J)+1))

The above formula returns a value (12) which equates to column "L" (for example). Given I can locate the "starting" point, how do I now lookup the value in column AA? As always, your help is appreciated.
Thx
 

Snakehips

Well-known Member
Joined
May 17, 2009
Messages
4,790
Office Version
2013
Platform
Windows
Can you not then use INDEX(AA) MATCH("L") ?
 

Snakehips

Well-known Member
Joined
May 17, 2009
Messages
4,790
Office Version
2013
Platform
Windows
As far as I understand what you are trying to acheive then, like.....
<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th><th>J</th><th>K</th><th>L</th><th>M</th><th>AA</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">Data</td><td style="text-align: center;;">Data</td><td style="text-align: center;;">Data</td><td style="text-align: center;;">Data</td><td style="text-align: center;;">Result</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">Lookup Value</td><td style="text-align: center;;">xxx</td><td style=";"><<Value to find in Data</td><td style="text-align: center;;">1</td><td style="text-align: center;;">99</td><td style="text-align: center;;">A</td><td style="text-align: right;;">44</td><td style="text-align: center;;">1</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style=";">Data Column</td><td style="text-align: center;;">12</td><td style=";"><<Result Your Formula </td><td style="text-align: center;;">2</td><td style="text-align: center;;">98</td><td style="text-align: center;;">b</td><td style="text-align: right;;">43</td><td style="text-align: center;;">2</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style=";">Result From AA</td><td style="text-align: center;;">9</td><td style=";"><< Find from AA</td><td style="text-align: center;;">3</td><td style="text-align: center;;">97</td><td style="text-align: center;;">c</td><td style="text-align: right;;">42</td><td style="text-align: center;;">3</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">5</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">4</td><td style="text-align: center;;">96</td><td style="text-align: center;;">d</td><td style="text-align: right;;">41</td><td style="text-align: center;;">4</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">6</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">5</td><td style="text-align: center;;">95</td><td style="text-align: center;;">e</td><td style="text-align: right;;">40</td><td style="text-align: center;;">5</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">7</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">6</td><td style="text-align: center;;">94</td><td style="text-align: center;;">f</td><td style="text-align: right;;">39</td><td style="text-align: center;;">6</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">8</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">7</td><td style="text-align: center;;">93</td><td style="text-align: center;;">g</td><td style="text-align: right;;">38</td><td style="text-align: center;;">7</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">9</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">8</td><td style="text-align: center;;">92</td><td style="text-align: center;;">h</td><td style="text-align: right;;">37</td><td style="text-align: center;;">8</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">9</td><td style="text-align: center;;">91</td><td style="text-align: center;;">xxx</td><td style="text-align: right;;">36</td><td style="text-align: center;;">9</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">11</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">10</td><td style="text-align: center;;">90</td><td style="text-align: center;;">j</td><td style="text-align: right;;">35</td><td style="text-align: center;;">10</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">12</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">11</td><td style="text-align: center;;">89</td><td style="text-align: center;;">k</td><td style="text-align: right;;">34</td><td style="text-align: center;;">11</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">13</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">12</td><td style="text-align: center;;">88</td><td style="text-align: center;;">l</td><td style="text-align: right;;">33</td><td style="text-align: center;;">12</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet4</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B4</th><td style="text-align:left">=INDEX(<font color="Blue">AA1:AA200,MATCH(<font color="Red">$B$2,INDEX(<font color="Green">J1:U200,,$B$3-9</font>),0</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Forum statistics

Threads
1,085,519
Messages
5,384,163
Members
401,885
Latest member
nirmalpatel85

Some videos you may like

This Week's Hot Topics

Top