#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default IF Formula

I have set up a spreadsheet for drivers with their unique code. This unique
code is quite long. So what I require, is when the drivers name is put in
the cell, the cell opposite automatically puts the drivers unique code in.

example:
a b
Driver 1 5456456434dfsf4545
Driver 2 548982112123dffd55


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default IF Formula

Hi Dave

If your complete list is in Sheet1 columns A and B, then in sheet2 cell
B2 enter
=IF(A2="","",VLOOKUP(A2,Sheet1!A:B,2,0))
and copy down

--
Regards

Roger Govier


"Dave" wrote in message
...
I have set up a spreadsheet for drivers with their unique code. This
unique code is quite long. So what I require, is when the drivers name
is put in the cell, the cell opposite automatically puts the drivers
unique code in.

example:
a b
Driver 1 5456456434dfsf4545
Driver 2 548982112123dffd55



  #3   Report Post  
Posted to microsoft.public.excel.misc
hmm hmm is offline
external usenet poster
 
Posts: 175
Default IF Formula

Keep an alphabetical list of drivers in, say, column A, and their
corresponding codes in column B. Then type the following formula in an empty
cell, say D1:

=LOOKUP(C1,A:A,B:B)

(This expression looks in column A for the value in C1, then returns the
value to the right in column B.)

Copy to all desired cells in column D. In column C the drivers will enter
their names, and to the right in D will appear the codes.

"Dave" wrote:

I have set up a spreadsheet for drivers with their unique code. This unique
code is quite long. So what I require, is when the drivers name is put in
the cell, the cell opposite automatically puts the drivers unique code in.

example:
a b
Driver 1 5456456434dfsf4545
Driver 2 548982112123dffd55



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 09:28 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"