+ Reply to Thread
Results 1 to 11 of 11

alphabetic sorting of 4 columns when one of the columns has 2 rows

  1. #1
    Registered User
    Join Date
    08-03-2013
    Location
    northern Illinois
    MS-Off Ver
    Excel 2002
    Posts
    6

    alphabetic sorting of 4 columns when one of the columns has 2 rows

    Please help. How do I go about sorting 4 columns (by one of the columns) where the 4th column has 2 rows in it?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    without seeing your excel file, without confidential information, (so we can test it), it's difficult to explain.

    The only criteria is the 4th column has 2 rows.

    Then they have to sorted from low to high or from high to low?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    08-03-2013
    Location
    northern Illinois
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    They need to be sorted alphabetically.

    1 しゅうりされて repaired 私の くるま は じどうしゃこう に よって しゅうりされています。
    My car is being repaired by the mechanic.
    2 ほされて arrested どろぼう は たいほされていません。
    The thief isn't being arrested.
    3 はなされます spoken ドイツご は オーストリア で はなされます か。
    Is German spoken in Austria?
    4 みられて watched テレビ は みられています か。
    Is the TV being watched?
    5 かれません not written たくさん の てがみ は クリスマス に かかれません。
    Lots of letters aren't written at Christmas.

  5. #5
    Registered User
    Join Date
    08-03-2013
    Location
    northern Illinois
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    1 しゅうりされて repaired 私の くるま は じどうしゃこう に よって しゅうりされています。
    My car is being repaired by the mechanic.

    They need to be sorted by the 3rd column. Thanks.

  6. #6
    Registered User
    Join Date
    08-03-2013
    Location
    northern Illinois
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    Corrected sort should be: (only 3 lines shown)

    2 ほされて arrested どろぼう は たいほされていません。
    The thief isn't being arrested.
    1 しゅうりされて repaired 私の くるま は じどうしゃこう に よって しゅうりされています。
    My car is being repaired by the mechanic.
    3 はなされます spoken ドイツご は オーストリア で はなされます か。
    Is German spoken in Austria?

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    Without seeing your spreadsheet in its native form (no pictures), we can not tell where a column begins and where one ends. Please attach a spreadsheet for analysis. Also, what non-printing characters may have an effect on the answer.

  8. #8
    Registered User
    Join Date
    08-03-2013
    Location
    northern Illinois
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    Copy of original file and file as sorted:
    Attached Files Attached Files

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    this code should work for you
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    08-03-2013
    Location
    northern Illinois
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    Thank you very much alansidman. You have saved me considerable time and also motivated me to update to Excel 2010 and learn programming.

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: alphabetic sorting of 4 columns when one of the columns has 2 rows

    You are 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. Replies: 0
    Last Post: 05-15-2013, 09:18 AM
  2. Arranging columns by name (non-alphabetic order)
    By mylovelyhorse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2012, 11:04 AM
  3. Replies: 7
    Last Post: 09-21-2011, 01:52 AM
  4. Count number of columns and return an Alphabetic character?!
    By Wino in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2009, 07:59 AM
  5. [SOLVED] How to keep rows together when sorting columns?
    By Amit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2005, 01:06 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