+ Reply to Thread
Results 1 to 12 of 12

Sorting Multiple Columns

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    Texas
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Sorting Multiple Columns

    Within an Excel file I would like to sort so that anytime a "value", in this case a name, appears in either one of two columns I can see the row. For example if row 1 column C contains "Smith" and "Smith" appears again in row 12 column D, I would like to see the contents of both row 1 and 12.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Sorting Multiple Columns

    The same question is asked yesterday on a dutch forum.
    This were the 2 results
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    04-27-2015
    Location
    Texas
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: Sorting Multiple Columns

    Willem -

    The attached file works well. However I don't see a "function" or "Formula" in the Input cell. How do I enter that function/formula into my spreadsheet?

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Sorting Multiple Columns

    Which file your talking about.
    The first has a hidden column
    The second is by VBA
    Upload your file and I will look at it.

  5. #5
    Registered User
    Join Date
    04-27-2015
    Location
    Texas
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: Sorting Multiple Columns

    I want to look for values from columns C & D but view the entire row.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Sorting Multiple Columns

    I think this is what you want.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-27-2015
    Location
    Texas
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: Sorting Multiple Columns

    Exactly!
    Now, can you tell me how to do this myself?!
    I see what you did in column O but what next?
    Last edited by BT3; 04-27-2015 at 02:28 PM.

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Sorting Multiple Columns

    I format the list as a table and a put a little VBA in it (ALT F11)

  9. #9
    Registered User
    Join Date
    04-27-2015
    Location
    Texas
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: Sorting Multiple Columns

    Willam, Your talking to a novice here!
    Please walk me through step by step.
    Thanks

  10. #10
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Sorting Multiple Columns

    Started from your example #5

    Insert a row at the top
    Formula in O2: =C2&D2
    Copy the formula down to the end of the list.(O592)
    Select the whole list (A2:O592)

    In the 'Home' tab you find 'format as a table'
    click on it and choose the layout you want.

    Select 'my tabel has headers'
    Then 'OK' and 'Yes'

    Start VBA with ALT F11
    On the left you see VBAproject with your filename
    Select 'Sheet1' just beneath it and put this code in it (right of your screen.):

    Please Login or Register  to view this content.
    And it all will work (I hope )

  11. #11
    Registered User
    Join Date
    04-27-2015
    Location
    Texas
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: Sorting Multiple Columns

    Willam, last year you helped me to add a VBA into a spreadsheet. Can you please help me again? I have attempted to add the VBA with your directions but have not been able to. If I send you the file can you add it for me? I can email the file directly to you if you would like.
    Thank you, Bill [email protected]

  12. #12
    Registered User
    Join Date
    04-27-2015
    Location
    Texas
    MS-Off Ver
    MS Office 2013
    Posts
    8

    Re: Sorting Multiple Columns

    Willam, last year you helped me to add a VBA into a spreadsheet. Can you please help me again? I have attempted to add the VBA with your directions but have not been able to. If I send you the file can you add it for me? I can email the file directly to you if you would like.
    Thank you, Bill [email protected]

+ 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. Need help sorting multiple columns
    By collbull in forum Excel General
    Replies: 9
    Last Post: 01-23-2014, 03:03 PM
  2. [SOLVED] Sorting multiple columns
    By Hexius in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-17-2006, 09:00 PM
  3. Sorting in multiple columns
    By jezzica85 in forum Excel General
    Replies: 2
    Last Post: 02-20-2006, 07:20 PM
  4. Sorting multiple columns as one
    By Randy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2005, 09:05 AM
  5. Sorting multiple columns in VBA
    By Mahi in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-13-2005, 03:06 PM

Tags for this Thread

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