sort by range

  1. S

    Sorting numbers before hyphen and within range

    Hi Folks, Sorry if I sound silly. But, is there a way to sort by the last two digits before the hyphen, without removing the numbers after the hyphen? ie. 12306-97 , 123000-17, 154312-15, 965434-18, etc. I can do this slowly by combing through the spreadsheet but it is inefficient and I end up...
  2. Z

    Macro to Use Sort by Function on Two Columns

    I need help with writing a macro to select to the last row of a given range of columns. My data is in the range of A:I. I need to sort first on column B, then sort by Column C. Here is the code I have thus far. But I cannot get it to execute without giving an error "Unable to get the Sort...
  3. 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...
  4. 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")...
  5. A

    Setting a variable range for a custom sort.

    Hi I am trying to save some processing time by reducing how much the computer needs to sort. Currently I have it set for 90,000 rows to handle the variable amount of information. I was wondering if there was a way to set the sort size based on how many rows actually have values/information in...
  6. T

    Sort phone numbers by state. I have the list of area codes with states next to them (screen shot)

    Hello! I need help guys, I have the filters at the top but i dont know what to do next. I want to be able to click the filter above the state abbrev column, sort by for example FL (for FLORIDA) and have all of the phone numbers populate on the right that begin with the area code that belongs to...
  7. 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...
  8. J

    Sort Selected Rows by Column X-Macro?

    This seems like a simple question, but i don't have the answer. I wish to Highlight any range of rows, then use a MACRO to sort it by Column "M" in Ascending order. Can anyone help me with this please?

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