## 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:

### Best Office Productivity Tools

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ... Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup .... Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List .... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ... Featured Features: Grid Focus   |  Design View   |   Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

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!
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
hi,, what if there will be more than to numbers that were ties?
This comment was minimized by the moderator on the site
Wonderful....Thanks this helped me
This comment was minimized by the moderator on the site
I had lost the ability to sort several rows of information on one page of a spreadsheet with many pages. After trying to fix the situation by reworking formulas none of the information will sort now. Can I fix this without having to recreate page that is the problem. Same information needs to be transferred to another page that contains all information from all the pages; this too stops sort there. Big problem and don't know how to solve it.
This comment was minimized by the moderator on the site
i need to convert a number into another format.lets take an example - no =12394567 i need to convert it into 674501239. its simple (last 2 digit in first ,then 2nd last 2 digits then add a zero(0) then first four digits in the last. can you please guys tell me the formula for this?
This comment was minimized by the moderator on the site
=CONCATENATE(RIGHT(A1,2),MID(A1,5,2),"0",LEFT(A1,4)) will get you that order of digits.
This comment was minimized by the moderator on the site
you can use the CONCATENATE and then LEFT or RIGHT in excel formula. Its easy, Got it ?
This comment was minimized by the moderator on the site
Sure, mail me the detail and I will show you the finished product
This comment was minimized by the moderator on the site
Hi, no problem, email me and I will show hulu how the finished product works.
This comment was minimized by the moderator on the site
Hi Dear, I have a sheet with 100 items , each item has a specific cost that happens in one year .I want to create another sheet that shows only the item that has cost in one year automatically ? for example all of the item with item No. and description and cost in 2016 and then for 2017 and so on... thanks
This comment was minimized by the moderator on the site
how can i sort lowest to highest value (a to z) in your example i.e lowest storage to highest storage. i use your formulla '=RANK(C2,C\$2:C \$6) + COUNTIF(C\$2:C2, "="&C2)-1'" & "=IFERROR(VLOOKUP(E2,A\$2:C\$6,2,FALSE), VLOOKUP(E2,A\$2:C\$6,2,TRUE))" . al is going well but i cannot sort lowest to highest.
This comment was minimized by the moderator on the site
Kedirech, you rock!! The COUNT thing eliminates ties!! I've had this problem for years but now this is the solution!! Thanks!!
This comment was minimized by the moderator on the site
Hi, I do it with if statements alone, how do I let you look at my file?
There are no comments posted here yet