+ Reply to Thread
Results 1 to 6 of 6

sort order according to columns specific in another worksheet cells

  1. #1
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    sort order according to columns specific in another worksheet cells

    hello friends ,

    i am trying to sort four columns in sheet("sort")
    order to be sorted changes , depending upon my need .
    order to be sorted is been specified in sheet("order") A2 B2 C2 D2 cells

    depending on need ,
    order in which i want this 4 columns to be sorted , can be enter in A2 B2 C2 D2 cells
    for exampe1 :
    i want to sort first column4 then column3 then column2 then column1

    for example2:
    i want to sort first column1 then column2 then column3 then column4

    basic need for this vba , is to sort according to my need , so i just have to input column number in cells .
    for understanding i have attach sample file . thank you
    Attached Files Attached Files
    Last edited by raj soni; 11-27-2015 at 06:42 AM.

  2. #2
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: sort order according to columns specific in another worksheet cells

    Hi! I am not sure if I understand your question. What is the difference between sorting in a different order, if in the end the four columns will be sorted independently? I am sorry If I did not get your point...
    excelbat.com: free Excel tools, macros...

  3. #3
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: sort order according to columns specific in another worksheet cells

    hi ,
    i have attach capture screenshot ,
    you will get idea , of what i am exactly looking for , thank you .
    Attached Images Attached Images

  4. #4
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: sort order according to columns specific in another worksheet cells

    Hi! I think this works...
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: sort order according to columns specific in another worksheet cells

    yes sir , its working 100 % , thank you ....you saved me from lots of works ....

  6. #6
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: sort order according to columns specific in another worksheet cells

    Great!

    If the answer helped you, please consider to add some reputation by clicking the Little star below this post. Thanks!

+ 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. Sort two columns (names) with keeping data intregity and order within the columns
    By ikindaknow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2015, 10:01 AM
  2. [SOLVED] Sort the order of columns based on values of header?
    By Granite-Granny in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-14-2014, 08:05 PM
  3. Sort columns in a predetermined order bases on headers (not alphabetic)
    By danieldaniel1 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-05-2013, 06:43 AM
  4. How to select two columns of values and sort them into ascending order,but w/o moving them
    By jonathancook in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2013, 05:51 PM
  5. Replies: 2
    Last Post: 07-04-2012, 02:52 AM
  6. if find blank in specfic ranges then blank the specfic range cells
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2012, 11:19 AM
  7. Sort order (ranking) for miltiple columns of data
    By plannerg in forum Excel General
    Replies: 2
    Last Post: 10-19-2010, 07:02 AM

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