Forum Discussion
Incorrect row height after sort
- Apr 16, 2023
If the row heights in your Excel workbook are not adjusting correctly after sorting, you can try manually adjusting the row heights to fit the contents of the cells.
Here’s how:
- Select the rows that you want to adjust. You can do this by clicking and dragging over the row headers (the numbered boxes to the left of the rows).
- Right-click on one of the selected row headers and choose “Row Height” from the context menu.
- In the “Row Height” dialog box, enter a value for the row height or leave it blank to use the default height. Click “OK” to apply the new row height.
Alternatively, you can use the “AutoFit Row Height” feature to automatically adjust the row heights based on the contents of the cells.
Here’s how:
- Select the rows that you want to adjust.
- On the “Home” tab of the ribbon, click on “Format” in the “Cells” group.
- From the “Format” drop-down menu, choose “AutoFit Row Height”. This will automatically adjust the row heights to fit the contents of the cells.
I hope one of these solutions works for you!
Here is a link with information on how you can get a quick and precise solution proposal.
If the row heights in your Excel workbook are not adjusting correctly after sorting, you can try manually adjusting the row heights to fit the contents of the cells.
Here’s how:
- Select the rows that you want to adjust. You can do this by clicking and dragging over the row headers (the numbered boxes to the left of the rows).
- Right-click on one of the selected row headers and choose “Row Height” from the context menu.
- In the “Row Height” dialog box, enter a value for the row height or leave it blank to use the default height. Click “OK” to apply the new row height.
Alternatively, you can use the “AutoFit Row Height” feature to automatically adjust the row heights based on the contents of the cells.
Here’s how:
- Select the rows that you want to adjust.
- On the “Home” tab of the ribbon, click on “Format” in the “Cells” group.
- From the “Format” drop-down menu, choose “AutoFit Row Height”. This will automatically adjust the row heights to fit the contents of the cells.
I hope one of these solutions works for you!
Here is a link with information on how you can get a quick and precise solution proposal.
- dpnelson130May 28, 2024Copper Contributor
NikolinoDE Is there a way, outside having a macro that triggers when a sheet is sorted, to have the AutoFit Row Height adjust to the new sort, without having to manually re-trigger it?
- NikolinoDEMay 29, 2024Gold Contributor
I have attached an example in the attached file.
I hope it helps you.
Otherwise, I always recommend starting a new conversation and describing your problem in great detail. Because not every suggested solution is suitable for everyone. It always depends on the Excel version, operating system, storage medium, file extension, etc.
- ScottisimoApr 16, 2023Copper Contributor
- NikolinoDEApr 17, 2023Gold ContributorI'm glad that I could help you a little bit.
I wish you continued success with Excel!