Vlookup Hlookup help

evmancd

New Member
Joined
Nov 27, 2017
Messages
2
So i may have over complicated this but hope someone can help me from pulling the rest of my hair out.

So i have 2 sheets one has information that is in rows and the other that i am wanting to have the formula return the value in horizontal format.

Sheet 1 has columns Switch/Port/Patch Panel/Vlan
Sheet 2 has rows (no labels) Row 1 is the patch panel number and the row below it is suppose to be for the vlan.

I am wanting to do a forumla under each cell to have it return the vlan that is listed on sheet 1 in this cell based on the patch panel number above it.

that is the best way i can describe it, can someone please help.

Thanks,
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
best way that i would recomend doing it is by formatting your sheet 1 as a table. then do a vlookup as
Code:
=vlookup(a1,Table1[[patch Panel]:[vlan]],2,false)
should take care of you.
 
Upvote 0
best way that i would recomend doing it is by formatting your sheet 1 as a table. then do a vlookup as
Code:
=vlookup(a1,Table1[[patch Panel]:[vlan]],2,false)
should take care of you.


I tried that, this is my current formula and it only returns N/A

=VLOOKUP(Q2,'Switch Port Vlans'!$C:$D,2,FALSE)

I am referencing Q2 and want my data returned to Q3. The data i seek is in column D and the value of Q2 is in column C.
 
Upvote 0
I tried that, this is my current formula and it only returns N/A

=VLOOKUP(Q2,'Switch Port Vlans'!$C:$D,2,FALSE)

I am referencing Q2 and want my data returned to Q3. The data i seek is in column D and the value of Q2 is in column C.

The issue I suspect is that you are using a dollar sign. Try placing the table at a1 formatting as a table and then using the formula I gave.
 
Upvote 0
Is this what you are trying to do?
Copy formulas across as needed.

Excel Workbook
ABCDEFGHI
1PP10PP11PP12PP13PP14PP15PP16PP17PP18
2V1V2V3V4V5V6V7V8V9
Sheet2
Excel Workbook
ABCD
1SwitchPortPatch PanelVlan
2S1P1PP10V1
3S2P2PP11V2
4S3P3PP12V3
5S4P4PP13V4
6S5P5PP14V5
7S6P6PP15V6
8S7P7PP16V7
9S8P8PP17V8
10S9P9PP18V9
Shert1
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,111
Members
452,302
Latest member
TaMere

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