How to sort dynamic data in Microsoft Excel?
Let's say you are managing the storage data of a stationary shop in Excel, and you need to automatically sort the storage data when it changes. How do you sort the dynamic storages data automatically in Excel? This article will show you a tricky way to sort dynamic data in Excel, and keep the sorting update automatically when the original data changes at once.
Sort synamic data in Excel with formula
Sort synamic data in Excel with formula
1. Insert a new column at the beginning of the original data. Here I insert column No. before the original data as below screenshot shown:
2. Follow our example, enter formula =RANK(C2,C$2:C$6) in Cell A2 to sort original products by their storage, and press the Enter key.
3. Keep selecting cell A2, drag the Fill Handle down to cell A6 to get all rest numbers in No. column.
4. Copy the titles of the original data, and then paste them besides original table, such as E1:G1. In the Desired No. column, insert the sequence numbers same as the No. orders such as 1, 2, …. See screenshot:
5. Enter formula =VLOOKUP(E2,A$2:C$6,2,FALSE) into Cell F2, and press the Enter key.
This formula will look for the value of Desired NO. in the original table, and display the corresponding product name in the cell.
Note: If repeats or ties display in the Product column or Storage column, you’d better apply this function =IFERROR(VLOOKUP(E2,A$2:C$6,2,FALSE), VLOOKUP(E2,A$2:C$6,2,TRUE))
6. Keep selecting cell F2, drag the Fill Handle down to cell F6 to get all product names, And keep selecting range F2:F6, drag the Fill Handle right to range G2:G6 to get all storage numbers.
Then you will get a new storage table sorting in descend order by the storage as below screenshot shown:
Supposing your stationary shop purchases another 145 pens, and now you have 200 pens in total. Just modify the original table of pen's storage, you will see the new table is updated in a blink of eyes, see the following screen shot:
Unlock Excel Magic with Kutools AI
- Smart Execution: Perform cell operations, analyze data, and create charts—all driven by simple commands.
- Custom Formulas: Generate tailored formulas to streamline your workflows.
- VBA Coding: Write and implement VBA code effortlessly.
- Formula Interpretation: Understand complex formulas with ease.
- Text Translation: Break language barriers within your spreadsheets.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!