Need help with a table 'lookup'

mcelotto

New Member
Joined
Sep 16, 2008
Messages
11
I'm wondering if I can gt some help. I'm a lil stumped as to how proceed with this problem. I had a table set up (image below) what I would like to do is be able to input a column header, and then once that column header is put in (ie Wifi 1) then put in a router name (Linksys E2500) and have the "channel" value return. I've tried been able to use vlookup to pull the channel when looking up the router name, but I'm having a hard time coming up with something that will look across the multiple headers and pull the correct column. Do I have to do an IF for each one and inside that put a vlookup? Any suggestions would be appreciated to help me int he right direction. I'm also using excel 2013 (don't have anything higher, so I know that options may be limited)

Thanks
MC
1643385563537.png
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hello!

I've made 2 assumptions when building out this formula:
1. That the Routers & your return table will always been in the same row positions (e.g. row 20 for you router)
2. That you only want to return the first row in the bottom part of your table (Row 20)

D26 =
Excel Formula:
=INDIRECT("R20C"&MATCH(D25,1:1,0),FALSE)
D27 =
Excel Formula:
=INDIRECT("R20C"&MATCH(D25,1:1,0)+1,FALSE)

The "20" in this part of the formula "R20C" needs to be changed if you want to return a router value that doesn't live in row 20.

I hope this helps!
 
Upvote 0
Hi Max1616,
So 1 is correct the routers will in the same location. But I would like to look up in the 3 rows. I could use an IFNA for the other rows correct and modify the RC20C to R21C if I'm reading that correctly.
MC
 
Upvote 0
Hi MCelotto,

Is this what you want?

MCelotto.xlsx
ABCDEFGHIJKLMNO
1Wifi 1CHWifi 2CHWifi 3CHWifi 4CHWifi 5CHWifi 6CHWifi 7CH
2
20
21TP-Link AX1800 Wif_Fi 6ALinksys XXDXEZFTP-Link AX1800 Wif_Fi 6G
22Linksys E3200B
23TP-Link WA99C
24
25
26Column NameWifi 5
27Router NameTP-Link AX1800 Wif_Fi 6
28ChannelG
Sheet1
Cell Formulas
RangeFormula
D28D28=INDEX($B$2:$O$23,MATCH(D27,OFFSET($B$1,1,MATCH(D26,$B$1:$O$1,0)-1,23),0),MATCH(D26,$B$1:$O$1,0)+1)
 
Upvote 0
Solution
@Toadstool YES that's exactly what I was looking for.. That it totally it. I'm going to "study" that formula to figure out what you did. I very much appreciate this! And @Max1616 thanks for your assistance as well. I'm sure I can use what you gave me in another spot.
 
Upvote 0
@Toadstool YES that's exactly what I was looking for.. That it totally it. I'm going to "study" that formula to figure out what you did. I very much appreciate this! And @Max1616 thanks for your assistance as well. I'm sure I can use what you gave me in another spot.
You're welcome.

...and a quick explanation:
I'm INDEXing into the whole matrix $B$2:$O$23 so I need to give it the correct row and column.

To get the row I give MATCH an OFFSET for the search being rows 1 to 23 and to find the column I MATCH D26 across row 1.
MATCH(D27,OFFSET($B$1,1,MATCH(D26,$B$1:$O$1,0)-1,23),0),

Now I need the column so MATCH across row 1 again but add 1 to the column of the matched Wifi
MATCH(D26,$B$1:$O$1,0)+1)
 
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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