Is there a way to auto sort alphabetically in excel? For example, if I have a list to which I have to keep adding items on a daily basis, is there a command which can help auto sort the new entries everytime I enter them.
Is there a way to auto sort alphabetically in excel? For example, if I have a list to which I have to keep adding items on a daily basis, is there a command which can help auto sort the new entries everytime I enter them.
You will need VBA to do this.
Put this code in the worksheet change event for the sheet in question. This also assumes that the data to be sorted is in Column A. You may need to change up the range to meet your particular needs. Since you did not attach a sample worksheet, this is the best I can do under the circumstances.
Please Login or Register to view this content.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
I am sorry but I did not understand where I have to enter this code. Attached is the worksheet, under sheet Item List, I need to make sure data is automatically sorted.
Right click on "Item List" tab ==>View Code++> copy/paste code (Done in Attached)Please Login or Register to view this content.
Now enter data in column B
I wanted to sort data from column A, row 2. Also I tried adjusting the code, but it did not work. After entering the data, do I need to give a command for it to work?
You want to sort by CODE not Description ?
Try
Please Login or Register to view this content.
Amended John's first Code. Open your file, click on Alt +F11. In the properties window on the left, double click on Sheet3. Insert the code. It will automatically sort when you put in data in column A.
Edit: John, I believe the target column should be 1 and not 2.Please Login or Register to view this content.
Still not working, not sure where I am going wrong. Please see attached under 'Item List' sheet
No code: did you follow Alan's instructions ??
Code added (again) to attached.
I did add the code...not sure what happened. It works now though. Thank you very much!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks