Input range and link a cell

J

Jane

Our employees need to record mileage between buildings. We have a workbook
with two sheets; daily travel and mileage grid of distances between
buildings. On the daily travel sheet they put in building codes (From-To)
and get the mileage from the grid. I'd like to automate it so when the
From-To codes are entered, the mileage from the grid is automatically
entered. Example: A1=BldgA B1=BldgD C1=mileage from grid. ....Note: A
Format Control on a form works, but there are several dozen entries, so this
is too cumbersome.
 
S

Sandy Mann

Jane,

With the list of buildings in C2:G2 and again in B3:B7 try using the
formula:

=OFFSET(B2,MATCH(H13,B2:B7)-1,MATCH(I13,B2:G2)-1)

to extract the data from the data contained in the table

--
HTH

Sandy
(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top