Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Is it possible??

I am trying to create a new vehicle log for my work place. I want to be able
to enter a vehicle number like 008 and have the name, and type of vehicle to
automatically fill out on the worksheet. Is that possible and how would I go
about doing it. Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 913
Default Is it possible??

On Fri, 12 Sep 2008 23:34:01 -0700, Daishido4me
wrote:

I am trying to create a new vehicle log for my work place. I want to be able
to enter a vehicle number like 008 and have the name, and type of vehicle to
automatically fill out on the worksheet. Is that possible and how would I go
about doing it. Many thanks


One way of doing this is to have a data table where the translations
from number to name and type are stated and then use the VLOOKUP
function.

Exampel:
Column A contains the numbers
Column B contains the names corresponding to each number
Column C contains the types corresponding to each number

Cell D1 contains a vechicle number
Cell E1 is where you want the vehicle name
Cell F1 is where you want the vehicle type

In cell E1 you put the formula
=VLOOKUP(D1,A1:C100,2,FALSE)

In cell F1 you put the formula
=VLOOKUP(D1,A1:C100,3,FALSE)

Change the 100 to fit the size of your data table in columns A to C

You can "hide" the data table either by hiding columns A to C or
putting the table in another worksheet.

Hope this helps / Lars-Åke



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



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