+ Reply to Thread
Results 1 to 8 of 8

Thread: vlookup and sort within 3 column

  1. #1
    Registered User
    Join Date
    09-12-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    11

    vlookup and sort within 3 column

    Dear All,

    I have this data,

    A B C
    A1 T-238 T-200 T-238
    A2 T-139 T-238 T-139
    A3 T-137 T-139 #NA

    For column C I've made this formula : =vlookup(B1,A:A,1,FALSE),

    Later on I want to sort this 3 columns become like this:
    A1 T-137 #NA #NA
    A2 T-139 T-139 T-139
    A3 T-200 #NA #NA
    A3 T-238 T-238 T-238

    but when I click sort menu and select to sort by col A, B , C, it won't be sorting like the way I want.

    Please advise

    thanks

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,943

    Re: vlookup and sort within 3 column

    I don't understand something here...

    Quote Originally Posted by onestar View Post
    A B C
    A1 T-238 T-200 T-238
    A2 T-139 T-238 T-139
    A3 T-137 T-139 #NA

    For column C I've made this formula : =vlookup(B1,A:A,1,FALSE)
    If that formula is in column C then you should have:

          A         B        C
    A1  T-238   T-200    #NA
    A2  T-139   T-238    T-238
    A3  T-137   T-139    T-139

    Am I missing something obvious?

  3. #3
    Registered User
    Join Date
    09-12-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlookup and sort within 3 column

    Sorry typo,

    the result should be like this
    T-238 T-200 #N/A
    T-139 T-238 #N/A
    T-137 T-139 T-238

    but i need to sort out the 3 column here

    T-139 T-139 #N/A
    T-238 T-238 T-238

    thanks

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,943

    Re: vlookup and sort within 3 column

    I think you've still got a typo, because a VLOOKUP on T-238 shouldn't return a #NA.

    Anyway, unless I'm missing something very obvious why don't you just sort on the first two columns?

  5. #5
    Registered User
    Join Date
    09-12-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlookup and sort within 3 column

    Maybe, I just copy paste from the excel.btw, I need to compare 3 column instead of 2.
    I have received another file that they can sort the 3 column exactly the same.

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,943

    Re: vlookup and sort within 3 column

    I'm really sorry, but I still can't see what you're trying to do. Is there any chance you could post an example workbook showing what you have now and what you're trying to get to?

  7. #7
    Registered User
    Join Date
    10-18-2011
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: vlookup and sort within 3 column

    The easiest way to get around your problem is by making column C hardcopy. So copy and than paste as values. Now you should not have any problem sorting it the way yo want. gl

  8. #8
    Registered User
    Join Date
    09-12-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: vlookup and sort within 3 column

    Dear Andrew,

    Sorry to make you confuse, pls find the attached.
    from the result in column C, then I need to sort the data for example:

    A8,B29,C29 in the same row

    Is it possible?

    Thanks
    Attached Files Attached Files
    Last edited by onestar; 10-24-2011 at 09:09 PM.

+ 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.2.0