+ Reply to Thread
Results 1 to 11 of 11

Vlookup ?? with my mileage sheet

  1. #1
    Registered User
    Join Date
    10-01-2007
    Posts
    6

    Vlookup ?? with my mileage sheet

    Hi I've been given a mileage sheet at work to use to calculate my journeys
    I cant help thinking it would be easier if i could have a way of calculating the mileage from one location to the other just by inputing the name in a couple of cells to produce the result in a third cell ?? I've attached an example of the sheet. Regards C
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    It would be better if you attached a zipped excel sheet instead.

    also, what do the numbers mean? Do you have destinations down the first column and destinations along the top row, so that the intersection of 2 destinations is the mileage between?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-01-2007
    Posts
    6

    excel sheet

    Hi Yeah sorry that text file was very misleading I'll post a zipped sheet.
    The sheet is usually given out printed but i stumbled across the excel version so i thought there must be a better way I've used Vlookup before but when you see the sheet and it's layout you'll see why i'm not sure of this. I feel i might have to strip out the data and change the layout, which would be a lot of work. I guess i was kinda hoping that someone might see it and know a solution. C

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    To post a zipped example of your sheet, go to “My Documents” or wherever you have your file stored, right-click and “Send to > Compressed file”, then attach this zipped file to your post.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Registered User
    Join Date
    10-01-2007
    Posts
    6

    Attached sheet

    Hi Heres the sheet mentioned HTH C
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    This, for me, is an unusual mileage sheet. Can you please explain how it works? and what inputs you would have and what you would expect as an output...

    use examples which can be found on the sheet.

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi NBVC,

    I think this is how it works:-

    ADAMSON to CAMERON is 12 miles
    ADAMSON to FORTH PARK is 20 miles
    CAMERON to FORTH PARK is 8 miles
    FORTH PARK to LYNEBANK is 14 miles

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by oldchippy
    Hi NBVC,

    I think this is how it works:-

    ADAMSON to CAMERON is 12 miles
    ADAMSON to FORTH PARK is 20 miles
    CAMERON to FORTH PARK is 8 miles
    FORTH PARK to LYNEBANK is 14 miles

    Oh, I see. Makes sense. Thanks oldchippy.... I'll try to work with that.

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Okay,

    I came up with something...based on oldchippy's interpretation of your chart (which I hope is correct).

    See attached...

    In the Input sheet, you select (from a dropdown list that I included ) the Start location and the Finish location... the total miles will appear underneath.

    Note: I added a 0 under the last location so that my formula would work..since it depends on a number being present under each location name. You can change the font format colour to white to make it invisible...

    If you add locations you will need to alter the formula (all you have to do is just change all the 79's in the formula to the new last row number).

    If you do change the formula in any way, you must confirm it with the CTRL+SHIFT+ENTER keys, this will make it an array formula and { } braces will appear.

    Hope this is what you were after..

    Note: You can go in any direction.. ie. you can pick a location on the left as start and a location on the right as a finish or vice-versa....
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-01-2007
    Posts
    6

    mileage sheet

    Hi

    Thanks thats excellent I guess thats what you would call nested IF's ??

    does just the job C

  11. #11
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Superb answer NBVC

+ 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