Excel Link

dpuddy

New Member
Joined
Nov 14, 2002
Messages
1
Sheet 1 is a d/l of info, has company#....sheet 2 has two columns, company# and company name...I want to be able to reference sheet 2 from sheet 1 in a new company name column, and have the company name automatically be put in based on the company#...how do I do this?

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
Sheet 1 is a d/l of info, has company#....sheet 2 has two columns, company# and company name...I want to be able to reference sheet 2 from sheet 1 in a new company name column, and have the company name automatically be put in based on the company#...how do I do this?

It sounds like you're shooting for a VLOOKUP - definitely a handy function. In sheet 1 in the column you want this will bring in the Company Name:

=VLOOKUP(A2,Sheet2!$A$2:$B$100,2,0)

where:
A2 = The Company# on sheet 1
Sheet2 A2:B100 = holds Company#'s in ColA and the Names in ColB

HTH
Adam

[edit] minor typo
This message was edited by Asala42 on 2002-11-15 13:18
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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