#1   Report Post  
Tray
 
Posts: n/a
Default Lookup

I have 2 spreadsheets. One is a database of all our dealer codes and the
state they are located in. The other is a list of all dealer codes that took
part in a promotion. I would like to add a column to the 2nd spreadsheet and
have excel look up each dealer code and insert which state they are in.
  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

Use VLOOKUP.
=VLOOKUP(CodeToLookup,sheet1!YourDatabase,2,0)
Copy down as necessary.

Example
The database here is A1:B10 on Sheet1. The answers to be returned in Column
B on Sheet2, based on the Codes kept in Sheet2 Column A.
On Sheet2 in cell B1:

=VLOOKUP(A1,Sheet1!$A$1:$B$10,2,0)
Copy down as necessary.

tj

"Tray" wrote:

I have 2 spreadsheets. One is a database of all our dealer codes and the
state they are located in. The other is a list of all dealer codes that took
part in a promotion. I would like to add a column to the 2nd spreadsheet and
have excel look up each dealer code and insert which state they are in.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
complex lookup [email protected] Excel Discussion (Misc queries) 1 December 17th 04 02:01 PM
Lookup Highest Number gregork Excel Discussion (Misc queries) 5 December 14th 04 04:17 PM
Lookup and Sort Question Josh O. Excel Discussion (Misc queries) 7 December 9th 04 08:18 PM
HELP -- probably a LOOKUP problem Liz-In-USA Excel Discussion (Misc queries) 3 December 9th 04 12:18 AM
Lookup the latest date in a range so it appears as my result FBB Excel Discussion (Misc queries) 1 December 4th 04 03:50 AM


All times are GMT +1. The time now is 02:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"