![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Jun 2002
Posts: 1
|
From a table with names of cities in column a and row 1 and the corresponding mileages between the cities in the field of the table such as that found on state maps as shown in the example below, can Excel be used to lookup mileages to populate cells in a spreadsheet?
A B C B E F 1 DALLAS FTW HSTN WACO 2 DALLAS 0 32 241 96 3 FTW 32 0 273 90 4 HSTN 241 273 0 207 5 WACO 96 90 207 0 Our operator would type HSTN into a cell in the spreadsheet as the origination point of something we need to track. Then WACO would be typed into the destination cell. What we would like to do is have Excel lookup on the table above and return the value 207 to a specific cell. Is this possible?
__________________
TEXAS ONAGER |
|
|
|
|
|
#2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,278
|
Here is an example. use DataValidation to create drop downs for your cities
To see the formula in the cells just click on the cells hyperlink or click the Name box PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR. The above image was automatically generated by [HtmlMaker 2.10] If you want this FREE SOFT, click here to download This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 42,648
|
Quote:
In H3 enter: =OFFSET($A$1,MATCH(H2,$A$2:$A$5,0),MATCH(H1,$B$1:$E$1,0)) To repeat, the first MATCH has the destination as lookup value and the second MATCH the source as lookup value. Aladin |
|
|
|
|
|
|
#4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Join Date: Mar 2002
Posts: 1,796
|
Quote:
Try this Eli
To see the formula in the cells just click on the cells hyperlink The above image was automatically generated by [HtmlMaker V1.23] If you want this code, click here and Colo will email the file to you. This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|