How to solve the excel sorting issue? Cells without formula are not sorting together with other cells.

koma1985

New Member
Joined
Oct 27, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Excel file has 2 sheets. 1st sheet is data with macros to sort. In 2nd sheet, I pulled some data from sheet 1 and made a table for user to edit.
While I press the shortcut to run the macro (E.g. Control+R), the table in sheet 2 does not sort properly. Those linked with the data I pulled from sheet 1 is sorting together. But for those cells without formula remained at same position without sorting. Is that the macro issue? How to stop the macro on 2 sheet?

I set the sheet 2 table with filter function. It sort properly when I click the sort arrow.

Thank you.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Obviously cells without formula will be unchanged. Could you share the formula, as well as a screenshot?
 
Upvote 0
This is the example. Hight,Weight and BMI are not sorting when press "Control + N" or "Control +G".
If I sort by click the sheet2 table arrow, it will sort properly.

Really appreciate your help
 

Attachments

  • Sheet 1.PNG
    Sheet 1.PNG
    13.4 KB · Views: 8
  • Sheet2.PNG
    Sheet2.PNG
    19.7 KB · Views: 8
  • vba.PNG
    vba.PNG
    43.8 KB · Views: 8
Upvote 0
Those are the formulas for Name and Gender
 

Attachments

  • f1.PNG
    f1.PNG
    1.6 KB · Views: 8
  • 2.PNG
    2.PNG
    3.5 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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