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
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Asala42

Well-known Member
Joined
Feb 26, 2002
Messages
2,318
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,961
Messages
5,599,061
Members
414,281
Latest member
Engjamal2021

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
Top