sort by column

  1. M

    Auto update and Show "Sort By" in Cell

    Hello, I have my data in a table 5 columns wide going from A3:E3 (below) Account Name Account Type State City Distance from Office I would like A2 to automatically show the current "sorted by" that is being used in the table. For instance, if sorted my table by City from A to Z, I would...
  2. Ombir

    VBA to Sort data based on Columnn. Anybody Please ?

    Hi friends, I have below data which is need to sort on based of Question Serial No in Row 1. <colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead> A B C D E F G H I J K L M N O P Q </thead><tbody> 1 Roll...
  3. N

    Sort pivot table with multi level

    I have a Pivot Table with many columns. I want the Pivot the ability to sort one of the columns in a way that the whole column is sorted and not the relative position in the hierarchy. example: <colgroup><col width="72" span="3" style="width:54pt"> </colgroup><tbody> name Product Sum...
  4. M

    How to link data so it can be sorted by different parameters on multiple worksheets?

    Hi, I'm trying to set up a spreadsheet of contacts' information with name, country, e-mail address columns and then have the data linked and sorted alphanumerically, by different parameters, on separate work sheet pages. ie Sheet 1 would display the contacts alphabetically by name; Sheet 2...
  5. J

    Sorting a table so matching data types are within same column

    Hi there , everyone , i was wondering if anyone has some ideas on the best way of sorting a table on row inputs. What i have is a table that has a many columns of information . The columns are in sections , i have used the example of a race details. There is a row of data for each race. Then...
  6. L

    Simple looping SORT, column by column

    Hi All. Just after a little help to get this loop to work. I need to sort 100 columns individually so I can export the data to a report. I have tried adapting the sort code to run on a loop 1-100, but I am missing something as I cant get it to run. If anyone has any idea what I am doing wrong...
  7. A

    Sorting range working but not on first cell

    I'm using the below code to sort cells in columns A and B. I want the end product to have column B sorted alphabetically. This code works for the most part but it does not add the first cell into the sort. So cell B1 stays where it was originally even though it is supposed to be in the sort...
  8. F

    sorting method

    Hi, I have sort function - now only by column B. I want to have sort by column B,C,D. How can I add it to below code? x_row_sort = wsSORT.Cells(Rows.Count, "A").End(xlUp).Row Dim oneRange, aCell As Range Set oneRange = wsSORT.Range("A1:CT" & x_row_sort) Set aCell = wsSORT.Range("B1")...
  9. F

    sorting method

    Hi, I recorded sort funcion to sort my range. I made cosmetic changes. Dim wbS As Workbook Dim wsS As Worksheet Set wbS = ActiveWorkbook Set wsS = wbS.Worksheets("sheet1") x_row_sort = wsS.Cells(Rows.Count, "A").End(xlUp).Row wsS.Sort.SortFields.Clear wsS.Sort.SortFields.Add...
  10. W

    Sort and combine 2 sets of data in excel

    Hi Guys, i'm newbie with excel 2010. i wanna sort 2 sets of data as follow: Name Amount Name Amount aaa 100 ccc 200 ccc 100 bbb 100 ddd 200 aaa 300 eee 100 fff 100 ggg 500 hhh 100 the result i expect will be: Name Amount Name Amount...
  11. G

    Sorting where rows are dynamic.

    I'm new to Excel VBA. This seems like it should be simple though. Here is my code. Currently I get a 1004 error. "Method of Range of Object _Global Failed" on "Range(Selection).Sort.SortFields.Clear" Any help is greatly appreciated. Sub sortBacklog() Dim appExcel As...
  12. S

    Arrange and Seqance Value By The Length

    <tbody> A Length B Length Sort & Arrange Data By Length Required Data 455915.210 10.000 455797.536 15 455790.023 5 455905.557 20.000 455790.023 5 455915.210 10 455898.910 30.000 455781.210 25 455797.536 15 455888.044 40.000 455773.414 85 455905.557 20 455881.357 50.000...
  13. J

    beginner VBA user. How do I find the max in this column?

    1) I have a column from a20:a27 with numbers from 1-8. I'm trying to find the max of the number using a simple loop. How do I do this? So far I have: Sub find_max1() Dim x As Integer for X = 1 to 7000 cells(x,1).max next X End Sub 2) Once I obtain that max...
  14. T

    Sorting linked worksheets when there are unlinked cells in a row

    2 columns from Sheet B are linked from Sheet1. When I sort Sheet1, by Linker#, it changes the display on Sheet 2. The Unlinked column isn’t tied to anything, so gets out of order with the other items on Sheet 2. Do you know how I can keep the rows in Sheet2 intact? Maybe using another...
  15. R

    How to sort data in columns with VBA instead of Excel's sort function

    Hi. I'm a novice when it comes to Excel VBA. Need help with this one. I can't figure out how to assign the same macro to different cells, instead of having a specific macro for a specific column. *Like for example, if I were to use the following code to sort a selected header in ascending order...
  16. K

    Macro won't sort top row after data added to one column.

    I have a macro attached to a button (each sheet actually has 4 macros attached to four buttons... but they are all virtually identical). Macro to sort range A5:E5 downwards (sorting by column A) works perfectly, until data is added to column D. When any data is added to column D the top row of...
  17. L

    Sort Automatically by column

    <link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cbuttu%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cbuttu%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping"...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top