+ Reply to Thread
Results 1 to 5 of 5

Sort one 1 column and keep corresponding rows

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    Holland
    MS-Off Ver
    Office 365 ProPlus
    Posts
    11

    Sort one 1 column and keep corresponding rows

    Hello everybody,

    I've been struggling with a set of data using Vlookup and keeping other data in cells in the same row as well.

    Attached is an example file in which:

    - A - E is raw data
    - H - L is desired data

    What I would like to achieve is that every row in column A-E is copied in which the first 11 is encountered in column E (yellow marked rows).

    I was trying some V-lookup functions but that did not really work out. Do you have any suggestions on this problem?

    Thanks!
    Lucas
    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 2403
    Posts
    44,141

    Re: Sort one 1 column and keep corresponding rows

    Hi. I added a header row. I created a helper column (which can be hidden) in column F. In F2, copied down

    =IF(AND(E2=11,E1<>11),1,"")

    I then used this array formula, copied across and down, to return your result:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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 Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: Sort one 1 column and keep corresponding rows

    Odd. The attachment disappeared...

    In The Netherlands, you'll have to use ; not , s a separator, of course.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-04-2012
    Location
    Holland
    MS-Off Ver
    Office 365 ProPlus
    Posts
    11

    Re: Sort one 1 column and keep corresponding rows

    Great, thanks for the quick reply. This was exactly what I was looking for!

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

    Re: Sort one 1 column and keep corresponding rows

    You're very welcome.

+ 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] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  2. [SOLVED] Macro for sort rows after value in certain column
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-26-2014, 06:47 AM
  3. Replies: 0
    Last Post: 08-26-2013, 09:27 AM
  4. How to sort on column C, but not include any rows with an x in column L
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2010, 10:23 PM
  5. Locking Rows for Column Sort
    By jbrentli in forum Excel General
    Replies: 1
    Last Post: 03-01-2008, 04:17 PM
  6. To get total for several rows and to sort by first column?
    By Liani in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2007, 06:57 PM
  7. [SOLVED] Sort Rows by Value in a Column
    By Emily in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2006, 10:00 PM

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