Need non-value blank lines sort after value lines macro. thanks

TOYKING23

New Member
Joined
Feb 25, 2016
Messages
13
I have built a macro that highlights from cell A4 to Cell AU4 then down to cell A1001 to cell AU1001 and it sorts the data ascending based on number data in column A. The data will always start in cell A4, but there will not always be data on each row to cell A1001. My problem I always need this entire area to highlight and sort which I have. But, if there is no data for example from cells A465 to A1001, when I sort ascending the blank lines sort and appear first. I need a macro to add to the existing macro, when I sort only the rows with numbers will appear first. But, I do not need to delete the blank rows. As these rows contain calculations and additional information may be added and then sorted again.

thanks in advance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,585
Messages
6,120,388
Members
448,957
Latest member
Hat4Life

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