+ Reply to Thread
Results 1 to 5 of 5

is there a better way to sort

  1. #1
    Registered User
    Join Date
    03-29-2013
    Location
    earth, universe
    MS-Off Ver
    Excel 2010
    Posts
    2

    is there a better way to sort

    I have a list of locations and their ranking of nearness to individual customers ie 2 columns and a list of locations to include/consider.

    The data I'm using has 10+ locations repeated for hundreds of customers in varying order and I want look at various scenarios where locations may be removed to see how removing locations may effect customers demand at other locations.

    If I remove a number of locations from 'locations to include' how do i create a new column with the highest ranked remaining location and make that the new first ranked other than using by using a lot of embedded IFs or IF and multiple look ups - this seems very inefficient

    Is there a better way ie can i identify the first value that is in the reduced locations list???.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: is there a better way to sort

    Hi,

    It's not clear, at least to me, exactly what you want to achieve. Please manually add some examples of results for various lists of included locations so that we can see the goal.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: is there a better way to sort

    Hi

    The way I would approach this is to list your locations and customers on a single sheet. Columns A and b

    Create your formulas to calculate your demand Column C.

    Write a macro to create your macros automatically just in case they get corrupted.

    *write a new macro to insert a new Column at Column D and to copy paste value your result from Column c into column D with a suitable Header.
    repeat * as many times as you need deleting a differrent location or locations each time.

  4. #4
    Registered User
    Join Date
    03-29-2013
    Location
    earth, universe
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: is there a better way to sort

    I agree- not fully explained initially...

    I need to know what is the highest ranked valid/selected location for each customer based on the selection in the lookup.
    A new sheet has been added. It must be one value only per customer. It can be assumed that the lookup wont remove all the customers locations
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: is there a better way to sort

    In order to understand your requirements, I have assumed there is a typo in E9 and it should read "d"

    I have used a helper column and Index and Match

    Let me know if I have missed something

    Regards
    Alastair
    Attached Files Attached Files

+ 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