Lookup where Column and Row can move

jimbomcmucka

New Member
Joined
Oct 11, 2022
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Hi guys,
I'm hoping you can help me to expand on the below formula that I have created. Cell B3 gives me a user name and I need to return more details about that user from the tab 'DATA-USERS'. Simply, I am trying to return the organization of the user. Unfortunately the Username is not the first column from the data source, so I am having to use INDEX+MATCH

=INDEX('DATA-USERS'!A:AC,MATCH(B3,'DATA-USERS'!K:K,0),MATCH("Organization",'DATA-USERS'!$1:$1,0))

This formula is working for me, however the issue is that the column can change when new data is extracted from the source. So, I need a way to make the K:K (highlighted in bold) dynamic.

Any suggestions?

Thanks in advance for any help, I;ve been staring at this for far too long and my brain seems to have clocked out for the day.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
you can use the index function to build a new lookup range as follows:
the first argument of the index function would need to include ALL possible columns of data in the look up sheet.

If you want to post your two worksheets (dummied up for anonymity) Someone or I can be more specific.
Use the xl2bb add in to do that.

Book1
GHIJKLMNOP
1Cat1Cat2Cat3Cat4OrgNameCat6Cat7Cat8Cat9Cat10
2GBIHXFIJSJOXKNALUVMTPNYUOTCPLL
3GMRHSPIUMJMVKEQLRNMDGNLGOCIPQD
4GFVHUVIEIJQBKBTLPQMBFNADOKFPWK
5GKRHEYITXJNEKSELBLMJHNUYOSBPAX
6GXDHWMIUPJYVKOYLVOMSPNOSOHMPKA
7GDIHATIOTJCFKGOLPFMYRNKXOPOPOF
8GVXHHSIWUJCDKXHLEGMXDNTHOVBPUC
9GCOHPXIALJUDKVBLRKMEJNUEOJXPJO
10GDOHRLIUEJGRKRPLKWMOCNDNOOPPPI
11GSDHVUIBJJKNKXVLWGMHDNLKOENPPT
12
13
14=INDEX($G$1:$P$11,0,MATCH("OrgName",$G$1:$P$1,0))
15OrgName
16KNA
17KEQ
18KBT
19KSE
20KOY
21KGO
22KXH
23KVB
24KRP
25KXV
jimbomcmucka
Cell Formulas
RangeFormula
G14G14=FORMULATEXT(G15)
G15:G25G15=INDEX($G$1:$P$11,0,MATCH("OrgName",$G$1:$P$1,0))
Dynamic array formulas.
 
Upvote 1
Solution
This is great, thanks! I've managed to get it working.

A new feature to add to the list!
 
Upvote 0
I'm pleased you found a solution here.

Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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