+ Reply to Thread
Results 1 to 3 of 3

Lookup Distance Matrix

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Lookup Distance Matrix

    Hey!
    Back with another problem! :P

    I'm updating my database of distances between different cities in our records... but the source that i have to lookup is actually a distance matrix....something like this...

    From/To Mumbai Pune Delhi Kochi Banglore
    Mumbai 0 240 1450 1800 900
    Pune 240 0 1550 1650 700
    Delhi 1450 1550 0 2800 2400
    Kochi 1800 1650 2800 0 500
    Banglore 900 700 2400 500 0

    Now i need to lookup the values contained within the matrix to get distances between them. I'm hoping if i can do that i dont have to actually manually sit and list down all the possible combinations of cities and distances between them but directly lookup the distances from this matrix...

    Any leads on this would be great to help me get started!

    Regards
    Mohit
    Last edited by mohitspamz; 10-08-2009 at 03:20 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,535

    Re: Lookup Distance Matrix

    Can you outline some examples - better yet post a sample workbook and demonstrate how you intend to use the matrix (ie illustrate where criteria values are being entered etc) -- all a tad vague I'm afraid.

    In essence retrieving the value is not difficult - an INDEX with 2 MATCH functions embedded to calculate row column, eg

    =INDEX($B$2:$F$6,MATCH("Delhi",$A$2:$A$6,0),MATCH("Bangalore",$B$1:$F$1,0))

    obviously references to From/To can be cell references containing the relevant locations.

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Re: Lookup Distance Matrix

    Perfect!
    I just wanted to know how it works conceptually... rest trimming and looking up cities i'll manage!

    Thanks for that formula!

    Regards
    Mohit

+ 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