+ Reply to Thread
Results 1 to 4 of 4

Help with pulling data from a table

  1. #1
    Registered User
    Join Date
    10-23-2006
    Posts
    2

    Help with pulling data from a table

    Hi all

    I was wondering how (if possible) you can get excel to pull data from a table, dependant on the values of two cells.

    My specific example is if you imagine a mileage chart, with a list of 10 destinations listed down the page and then the same 10 destination listed across the page (in an x and y axis) then the corresponding mileages between destinations in the resulting grid table.

    Could you then get excel to pull the correct mileage out from the table if you enter two destinations on a worksheet?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    cattlegrid_79,

    Try,

    =OFFSET($A$1,MATCH(J1,$A$1:$A$5,0)-1,MATCH(J2,$A$1:$E$1,0)-1)

    Where J1 and J2 are your destinations and A1:E5 is your grid.

    HTH

    Steve

  3. #3
    Registered User
    Join Date
    10-23-2006
    Posts
    2
    Hey

    thanks for this. It kind of nearly works, but every now and then it returns one of my row or column headers as a result.

    Any ideas?

  4. #4
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    cattlegrid_79,

    I did not run into this problem. How is your grid set up exactly? I had a blank cell in A1 and then in A2:E5 were cities and B1:E1 cities.

    Steve

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1