Copy/paste this UDF to a general module in your workbook.
Function EvalCell(RefCell As String)
Application.Volatile
EvalCell = Evaluate(RefCell)
End Function
Then with chatsworth in A3 and mission_hills1 in B3
In C3 enter =evalcell(A3&" "&B3)
Use a Data Validation drop-down list in A3 and B3 so's you just click on a
city in A3 and B3
Gord Dibben Excel MVP
"Slumbering Gorilla" wrote:
im made a mileage chart with many values in it. so now when i type
=chatsworth mission_hills1
it gives me the intersection which is the mileage between the two cities.
works perfectly.
BUT, i want to get it so i type the "from" city in one cell, then the "to"
city in another cell then giving me the intersection value in the third cell.
i typed in the formula
=A3 B3
A3 containging the from city and b3 containing the to city. but it doesnt
work. obviously i do not know how to get this formula to work. need help if
there is an answer.
|