+ Reply to Thread
Results 1 to 2 of 2

vlookup in descending order

  1. #1
    Registered User
    Join Date
    10-01-2009
    Location
    stoke
    MS-Off Ver
    Excel 2003
    Posts
    11

    vlookup in descending order

    Hi guys. Fancy something to get your teeth into?

    Im running a workbook that has a list of all the runs for a day, and several daily driver sheets that automatically copy and order the drops using vlookup.

    However, runs 7 and 9 are trunked. We load the trunk wagons in reverse order so as to not confuse the loaders. The loads are then trans-shipped to the wagon that does the runs in the correct order.(the first cage off the trunk wagon becomes the first cage on the delivery wagon).

    I am having a problem getting the drops in the correct order ( e.g. the last drop on the run list becomes the first drop on the daily drivers sheet.

    run listing drop no 1 = daily sheet drop no 15

    I hope this makes sense. Take a look at the attached spreadsheet.

    Any ideas how to overcome this problem are greatly appreciated.

    Thankyou

    Colin
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: vlookup in descending order

    Can it be this simple ??

    =VLOOKUP(16-$A14,Run7,3,0)

    or more dynamic =VLOOKUP(1+COUNTA('Run Listing'!$A$63:$A$80)-$A14,Run7,3,0)

    Additional NOTE: You use merged cells in the Vlookup range. Now it is OK, but sooner or later you'l run into problems.
    Try to avoid merged cells as much as possible.
    Last edited by rwgrietveld; 02-16-2010 at 06:17 AM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

+ 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