+ Reply to Thread
Results 1 to 18 of 18

Descending order of arrangement from one column Data

  1. #1
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Descending order of arrangement from one column Data

    Dear Masters,

    I need one help for Descending order concept.

    I have data in one column and i want to extract to another column by Descending order.

    Rule is: Read entire Column data up to end of column data and paste to another column

    please find the sample attached file and make a possible code.

    Thanking you all,
    Best regards.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-30-2016 at 12:21 PM.

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

    Re: Descending order of arrangement from one column Data

    with a helpcolumn and a pivot table.


    File removed after PM of OP.

    --------------------------------------------------------------------------------
    Join Date:12-16-2013Location:IndiaMS-Off Ver:Excel 2007Posts:167


    Unhappy Post#2 Delete Request_Reg


    Dear sir,

    Kindly remove or modify yours Post#2 attachment. because at Sheet no.1 some personal data is came with attachment which is attached at Post#1 by me.

    so kindly remove that attachment from thread.


    Thanking you sir,
    Best regards.
    Last edited by oeldere; 08-30-2016 at 01:06 PM.
    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.

  3. #3
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Quote Originally Posted by oeldere View Post
    with a helpcolumn and a pivot table.
    Dear sir,

    thank you for your kind reply and preparing by pivot version. kindly provide by Macro version. because i have no minimum idea about pivots using and editing. and some inconvenience by pivot data.because i need one more output column with respect to "D" Column to "F" Column.

    please find final output type file.


    Thanking you sir,
    Best regards.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-30-2016 at 12:11 PM.

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

    Re: Descending order of arrangement from one column Data

    because i have no minimum idea about pivots using and editing.
    That is a very good reason start learning it, since it is a very powerfull tool, which is expanded in each new version of excel.
    That the way Microsoft tells us (my opinion), that is the way to go (for the future).

  5. #5
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Quote Originally Posted by oeldere View Post
    That is a very good reason start learning it, since it is a very powerfull tool, which is expanded in each new version of excel.
    That the way Microsoft tells us (my opinion), that is the way to go (for the future).
    Thank you for valuable suggestion.

    i need automation by macros for many rows. so kindly arrange the macro version.

    thanking you,
    Best regards.

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

    Re: Descending order of arrangement from one column Data

    VBA is not my kind of expertice. I leave this to other forummembers.

  7. #7
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Dear all Masters,

    Please help me for required output.

    Thanking you,
    best regards

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Descending order of arrangement from one column Data

    Hello pvsvprasad,

    This was an interesting challenge. The attached workbook contains the two macros shown below and a button on the worksheet to sort the data. The sorted data starting in cell "D3" is cleared each time the macro runs down to the last cell in column "D" with data.

    The sort is done using a modified bubble sort which is fast on small lists of 1000 or less entries. If sorting speed becomes an issue then I have other algorithms that can used.

    Bubble_Sort_Modified Module Code
    Please Login or Register  to view this content.
    Sort_Data_By_Occurrence Module Code
    This is the macro called by the button on the worksheet.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  9. #9
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Quote Originally Posted by Leith Ross View Post
    Hello pvsvprasad,

    This was an interesting challenge. The attached workbook contains the two macros shown below and a button on the worksheet to sort the data. The sorted data starting in cell "D3" is cleared each time the macro runs down to the last cell in column "D" with data.
    Dear sir
    Thank you taking challenge and making wonderful code. your code is working in which is provided by you in post.

    i copied to another sheet and showing error while running. what is the problem? please observe screen shot of the error. i have small modifications are carried out, i am modified as "S4" instead of "B3", "S" instead of "B", "AE4" instead of "D3". "AE" instead of "D". but not successful.


    my final request is, i need another column which is mentioned in post#3, so kindly found attachment with this post.

    thanking you sir,
    with best regards.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-31-2016 at 01:03 AM.

  10. #10
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Dear sir,

    Please find Error generated file with sample output.

    Thanking you,
    Best regards.
    Attached Files Attached Files

  11. #11
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Descending order of arrangement from one column Data

    Hello pvsvprasad,

    You did not copy the macro SortList into your workbook. I have added it and added a button to call the main macro SortData.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Dear sir,

    Thank you for correcting my mistakes,

    please find at "AG" Column Sample output and add to your code.

    thanking you,
    Best regards.

  13. #13
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Descending order of arrangement from one column Data

    Hello pvsvprasad,

    I have added the code to copy the codes into cell "AG".
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Quote Originally Posted by Leith Ross View Post
    Hello pvsvprasad,

    I have added the code to copy the codes into cell "AG".
    Dear sir,

    Thank you very much For modification it is working well.

    my final request is any possibility for Ascending order in AG Cell? like 1 2 3 4 5.

    Thanking you sir,
    With best regards.

  15. #15
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Descending order of arrangement from one column Data

    Hello pvsvprasad,

    I am posting the full code because I made changes to both macros. The attached workbook has the changes installed. Cell "AG2" will display the prefix codes in ascending order separated by spaces.

    Revised Code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    Thank you very much sir,

    well executing.

    Best regards.

  17. #17
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Descending order of arrangement from one column Data

    Hello pvsvprasad,

    You're welcome.

  18. #18
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Descending order of arrangement from one column Data

    dear sir,

    please have a look at my another thread and solve please http://www.excelforum.com/excel-prog...mall-bugs.html

    thanking you,
    Best regards.
    Last edited by pvsvprasad; 09-01-2016 at 12:22 PM.

+ 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] Concatenate if other column value is non-blank or non-zero BUT IN DESCENDING ORDER
    By Petros Georgilas in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-08-2014, 04:26 PM
  2. Replies: 5
    Last Post: 05-29-2014, 11:55 AM
  3. Replies: 3
    Last Post: 01-05-2013, 11:06 AM
  4. Replies: 14
    Last Post: 04-17-2012, 05:18 PM
  5. Pivot table to show certain column in descending order
    By rushdenx1 in forum Excel General
    Replies: 1
    Last Post: 01-04-2012, 05:32 AM
  6. Determining if data is sorted in descending order
    By headly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2006, 11:47 PM
  7. [SOLVED] Date in descending order to come up automatically in a column?
    By Snugglebums in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2005, 12: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