+ Reply to Thread
Results 1 to 9 of 9

Sort depending of previous selection

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Sort depending of previous selection

    Good Afternoon

    Attached is a copy of a spreadsheet that im working on, im trying to sort staff on their correct locations depending where i originaly select them.

    The attachement will have more info

    Help with this will be appreciated
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sort depending of previous selection

    Hi. This might do what you want...

    Paste into H4 & copy down...

    Formula: copy to clipboard
    =IF(ISNUMBER(MATCH(C4,E5:E27,0)),C4,"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: Sort depending of previous selection

    Hi Glen

    Thank you for your help
    Quote Originally Posted by Glenn Kennedy View Post
    Hi. This might do what you want...

    Paste into H4 & copy down...

    Formula: copy to clipboard
    =IF(ISNUMBER(MATCH(C4,E5:E27,0)),C4,"")

  4. #4
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: Sort depending of previous selection

    for some reason this formula isnt working for all the cells, i have copy and draged down but you will see that this only works if the cells are one or two rows above or below the target??

  5. #5
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: Sort depending of previous selection

    just add $ sign and it is working fine thanks you

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sort depending of previous selection

    I forgo to lock the cells in column E. When you use this on your real sheet, you'll need to re-set the ranges appropriately at the top of the column, before you copy down.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sort depending of previous selection

    Yea, you beat me to the explanation...

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sort depending of previous selection

    You're welcome...

    If that fixes things, please mark the thread as closed and (preferably) click the Add Reputation button at the bottom left of this post.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sort depending of previous selection

    Ooops.

    Try this...
    Formula: copy to clipboard
    =IF(ISNUMBER(MATCH(C4,$E$5:$E$27,0)),C4,"")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to insert value depending on previous field
    By kellydvorak in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2014, 07:45 PM
  2. [SOLVED] Indexing proper range in listbox depending on selection in previous listbox
    By bloodmeat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2013, 02:31 PM
  3. Drop down list depending on previous values
    By OAKLEY in forum Excel General
    Replies: 17
    Last Post: 01-03-2013, 12:54 PM
  4. Replies: 4
    Last Post: 11-20-2012, 06:00 PM
  5. Replies: 1
    Last Post: 01-23-2011, 08:00 AM

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