Ravindra BagaleCourses & study guides मराठी Track your progress

9. Dynamic Arrays

Excel

9.3 SORT and SORTBY

Rank a report without reordering its source records

A fictional order coordinator needs two lists from the same spreadsheet. The packing team wants the highest amount first, regardless of city. A city lead wants the orders grouped by city name and the most expensive order first within each city. Rearranging the source for one person removes the view the other person expected. A sorting formula can produce a separately ranked result that recalculates when the source changes, while the original records stay where they were entered.

SORT takes a result array and a numbered sort position inside it. SORTBY takes a result array and one or more aligned values to sort by. A sort key is the piece of data used to compare two records, such as Amount or City. A tiebreaker is a later key that decides which record comes first when the earlier keys are equal. The formulas return a sorted output rather than running Excel’s in-place sort command on the source cells.

The grocery figures are imaginary examples inspired by Blinkit and Amazon Now, and the second lab uses invented streaming sessions in a Netflix-inspired media workshop. No orders, counts or workflows describe real company operations.

Pick position-based or field-based sorting

SORT uses a position within the supplied array

In =SORT(A2:E11,4,-1), the input is the rectangle A2:E11. The key is its fourth column, D, and the direction is descending. If the source starts in J rather than A, the number still means the fourth input field, not worksheet column D. Omitting the sort order gives ascending order. By default rows are rearranged. A fourth argument of TRUE tells SORT to rearrange columns and use one input row as the key instead. Use that mode only when records or measurement periods run sideways.

A sorting formula keeps the supplied input shape. SORT over ten rows and five fields returns ten rows and five fields. A formula can return just the amount field if supplied only that column, but then it no longer identifies the record alongside the amount. Preserve enough fields for the report to answer its question. In a separate scratch list, include the order ID and amounts together instead of sorting the individual columns independently.

SORTBY uses separate keys aligned to the input

In =SORTBY(tblSort,tblSort[City],1,tblSort[Amount],-1), the first key is the City data column with ascending direction 1. The second is Amount with descending direction minus 1. Once two records have the same city, the second key decides their relative order. When only one key is needed, you can omit its direction to accept ascending order. When several are supplied, state each direction so a reader can understand the recipe.

The keys do not all have to be fields displayed in the output, but they must describe the same records in the same order. A list of ten IDs can be sorted by the ten aligned Mins measurements without displaying Mins. A list of five already-filtered IDs cannot simply use all ten source Mins as its key. Filter the key using the same rule or retain the key as part of the output while sorting. Check both array dimensions and matching row identities.

  • First key: choose whether the highest value overall or the grouping label comes first.
  • Direction: use 1 for ascending and -1 for descending. State the direction separately for each key in SORTBY.
  • Additional key: specify the next field when the first one ties. For repeated amounts and dates, choose a stable unique recorded ID or sequence as a final key.
  • Data type: verify amounts and dates are stored as numbers or dates, so the comparison matches their business meaning. A label that looks like a number may still sort as text.
  • Placement: use a clear ordinary range for the output. Keep headings above it and reserve room for more rows after verified source expansion.
Amount-first sort starts with the Solapur order at 1299 rupees. City-first starts with the Kolhapur order at 232. Pune starts with its own 220-rupee order.
The largest amount overall is not the first order in a city-first report.

Lab 1. Return two order rankings from one Table

On a sheet called Orders type these ten records. This layout puts Amount fourth, even though other course examples use a wider source with Amount at a different position. The comparison is deliberate. Use numeric minutes and amounts. Create a Table from A1:E11 and call it tblSort in a practice client that supports changing its name.

Orders A1:E11. Amount is the fourth field and Mins is the fifth.
Order IDCityPlatformAmountMins
BLK-1001PuneBlinkit649
BLK-1002NashikBlinkit27012
AMN-1003PuneAmazon Now11014
BLK-1004NagpurBlinkit24011
AMN-1005KolhapurAmazon Now23216
BLK-1006PuneBlinkit1508
BLK-1007SolapurBlinkit129918
AMN-1008Sambhaji NagarAmazon Now19510
BLK-1009PuneBlinkit22013
BLK-1010NashikBlinkit9017

Build two independently labeled outputs

  1. Choose the first anchor. On a Report sheet put the five field labels in A1:E1. In A2 type =SORT(tblSort,4,-1). The data body returns ten rows in A2:E11. BLK-1007 at ₹1,299 comes first and BLK-1001 at ₹64 comes last. The source starts with BLK-1001 and ends with BLK-1010, so you can verify it was not reordered.
  2. Check the two middle rows by ID and amount. The full descending sequence is BLK-1007, BLK-1002, BLK-1004, AMN-1005, BLK-1009, AMN-1008, BLK-1006, AMN-1003, BLK-1010 and BLK-1001. The fifth and sixth results are ₹220 and ₹195. The total across all order values stays ₹2,870.
  3. Build the city-based output. On another clear worksheet or in H2:L11 on Report with labels in H1:L1, enter =SORTBY(tblSort,tblSort[City],1,tblSort[Amount],-1,tblSort[Order ID],1). Kolhapur comes first, with AMN-1005 at ₹232. In the Pune block, the amounts are 220, 150, 110 and 64. Each city block has its own declining amounts. Keep both reports so you can compare which rule produced the different top row.
  4. Hide the key from what you return. In O2 use =SORTBY(tblSort[Order ID],tblSort[Mins],1,tblSort[Order ID],1). There is one output field. The first three IDs are BLK-1006, BLK-1001 and AMN-1008. Check their original times are 8, 9 and 10 minutes. The dimensions are ten by one. A report can rank by time without returning a time field.
  5. Try a platform-first report. On a fresh clear grid enter =SORTBY(tblSort,tblSort[Platform],1,tblSort[Amount],-1,tblSort[Order ID],1). The Amazon Now block starts with AMN-1005, AMN-1008 and AMN-1003 at amounts 232, 195 and 110. The Blinkit block begins with BLK-1007 at ₹1,299. Check the first ID in each block rather than looking only at global maximum.

Observe a new record and an input-field position change

Append BLK-1011, Pune, Blinkit, 420, 15 directly below the original Orders Table. Confirm it became a member. The all-amount sort starts with BLK-1007 and BLK-1011. The city-first sort still starts in Kolhapur, and the Pune block now starts with BLK-1011. The ID-only sort puts the 15-minute order between the original 14-minute and 16-minute orders. The overall total becomes ₹3,290. No sorting formulas need extra rows hard-coded when they reference the expanded Table.

On an independent practice copy, insert a Table column immediately before Amount and call it Import Seq. Enter sequence values 1 through 11 in original source order. Keep unused space around the spill so the larger width can fit. If you leave SORT’s key at 4, the fourth input field is now Import Seq, so a descending result puts the newest source row first. To recover the intended amount-first output, use index 5 or use =SORTBY(tblSort,tblSort[Amount],-1,tblSort[Order ID],1) on the appropriate Table in the copy. The named key still identifies Amount. Check the output headings after adding the field. A correct sort on a wider source can still look wrong when displayed under outdated labels.

Lab 2. Rank matching sessions with consistent keys

A fictional media club wants to review the longest streaming sessions. Their next report should show only a selected device. Several session times are tied, so they ask for earlier session date first when the times match, and original recorded sequence for a remaining tie. Enter the practice data in a fresh sheet called WatchCrew. The numbers describe imaginary Netflix-inspired viewing sessions, not real platform statistics.

WatchCrew A1:E7. Use actual Excel dates for November 2026 and numeric duration and sequence values.
SessionDeviceDateMinutesImport Seq
WV-21Phone3 Nov431
WV-22TV2 Nov722
WV-23TV2 Nov723
WV-24Web4 Nov184
WV-25TV1 Nov605
WV-26Phone1 Nov726

Prove the full three-key order before adding a condition

Put the five output labels in F10:J10. In F11 enter =SORTBY(A2:E7,D2:D7,-1,C2:C7,1,E2:E7,1). It returns WV-26, WV-22, WV-23, WV-25, WV-21 and WV-24. The 72-minute WV-26 rises to the top because it is on 1 November. WV-22 and WV-23 have the same duration and date. Their recorded sequences put 22 first. WV-25 also occurred on 1 November and stays below all three because the strongest key is duration. Compare all six durations with the source, verifying that the new order does not change their total of 337 minutes.

Three sessions last 72 minutes. WV-26 on 1 November ranks first. WV-22 and WV-23 share 2 November, so sequences 2 then 3 finish the tie.
Use the date only within a duration tie, and use the recorded sequence only when both earlier keys tie.

Filter each sort key with the same row test

Put Device choice in H1 and TV in H2. Use L10:P10 for labels and L11 for the result. The clean output has enough room below those five fields. The formula first tests how many rows match the device. It then filters the result fields and each sort key against that same condition, so their row identities and sizes match.

=LET(deviceMask,B2:B7=$H$2,
     IF(SUM(--deviceMask)=0,"No matching sessions",
        SORTBY(FILTER(A2:E7,deviceMask),
               FILTER(D2:D7,deviceMask),-1,
               FILTER(C2:C7,deviceMask),1,
               FILTER(E2:E7,deviceMask),1)))
  1. With TV selected, the output includes WV-22 and WV-23 at 72 minutes and then WV-25 at 60. There are three rows totaling 204 minutes. The separate output sorted across all devices is still available.
  2. Choose Phone. The two result IDs are WV-26 and WV-21. They total 115 minutes. You can see that filtering changed the population while the ranking rule remains intact.
  3. Choose Tablet. There are no matches and the formula returns No matching sessions. A message is not a session. Use COUNTIF(B2:B7,$H$2) separately if you need an exact match count with either a report or a message present.
  4. Restore TV. Change the scratch amount of time for WV-25 from 60 to 72. Its earlier date puts it first among TV sessions. In the all-device output it now precedes WV-26 because both are on 1 November at 72 minutes and its sequence 5 precedes 6. Restore 60 and check both outputs.

Read each key only when the earlier one ties

  1. Start with Minutes

    Place all sessions of 72 minutes before sessions of 60 minutes or less.

  2. Compare the tied dates

    WV-26 is on 1 November. It goes before the two 2 November sessions at 72 minutes.

  3. Read Import Seq in the final tie

    WV-22 and WV-23 have equal duration and date. Sequence 2 comes before 3.

  4. Return only a matching device

    TV keeps WV-22, WV-23 and WV-25. Filter all input keys consistently and retain the same ordering rule.

Keep the comparison keys beside the right records

Test a key of the wrong length and a key of the wrong alignment

In the six-session source, FILTER(A2:E7,B2:B7="TV") returns three TV records. Passing the original six-entry Minutes range to SORTBY with that smaller result gives it a different number of row keys than rows. Sort the filtered array using a key field inside it, or filter the Minutes range with exactly the same device test. The same rule applies to every additional key. This is why the formula in Lab 2 reuses the same device mask instead of retyping a similar condition three times.

A key can have the right length but refer to the wrong rows. To see this, put 1 in D8 on a separate scratch copy. Try aligning A2:E7 with D3:D8 instead of D2:D7, keeping the original date and sequence ranges. Excel now has six main rows and six key values, so the shape alone may look reasonable. The first row WV-21 is incorrectly paired with WV-22’s 72 minutes rather than its own 43. WV-26 is paired with the deliberate extra 1. Using those misaligned keys, WV-25 lands first and WV-26 lands last. Check the actual first and last key values by ID to detect this mistake.

When source fields can be rearranged or new rows can appear, keep the result array and key arrays in the same source list where possible. If you need a key from a separate report, align it to the source identities first rather than hoping that both lists with the same row count have the same sequence. To verify alignment, compare at least one record before and after sorting. The lab’s final key, Import Seq, makes it possible to reconstruct exactly which original row was associated with each value.

Choose a simple branch when only one key is needed

For the smaller TV-only report, the return array already contains Minutes as the fourth field. A simpler one-key version can first filter the five fields, then sort the resulting array by field 4. This is useful when you need only the longest duration and the relative order of two tied sessions has no business importance. Avoid handing the empty fallback text directly into a sort by column 4. First check whether the filtered set has matches, or use a report branch that handles the fallback separately.

If a teammate needs the earliest among tied sessions, use the full named set of keys. A one-key result might happen to show WV-22 before WV-23 in a particular build. The formula did not state why WV-22 should come first. A specific date and sequence policy makes that ordering intentional and testable. There is no need to rely on an unstated sort stability policy.

Rearrange periods running across a sheet

Sometimes the units you want to move are columns. On a separate sheet called Periods, enter Wed, Mon and Tue across A1:C1 and the numeric amounts 32, 45 and 10 below in A2:C2. Each header and number belong together. The request is to show the three periods ranked by their number, with the labels attached.

  1. Leave E2:G3 clear and enter =SORT(A1:C2,2,-1,TRUE) at E2. TRUE chooses column movement, so index 2 means the second input row. Excel sorts those three columns by 32, 45 and 10 in descending order.
  2. Expect Mon, Wed and Tue in the first output row and 45, 32 and 10 below. Check the rectangle is two by three, the same shape as the source. Monday’s label remains paired with 45.
  3. Compare the original values and labels. They are still Wed, Mon, Tue in A1:C1. A follow-on calculation can read the scored view at its output reference without changing the input. If you omit TRUE, the direction instead treats rows as the units to rearrange. That cannot answer this column question.

Sorting periods by values can be useful for a ranking view, but a time-series chart usually needs chronological order. A three-column report showing highest amount first should use a label such as “Periods ranked by score.” Write the category label alongside the numeric result and preserve a separate record of the actual order of days. Count the number of columns rather than the number of rows when the columns themselves describe the records.

Create a priority key when alphabetical order is the wrong rule

The coordinator changes the request again. Today Pune gets the first queue, Nashik goes next, and all other cities come after those two. Inside each priority group, show high amounts first. An alphabetical sort of City cannot represent this order because Kolhapur comes before Pune. A priority key is an extra value assigned to a record so that its numeric order expresses a business decision. Give Pune a 1, Nashik a 2 and other cities a 3. Use the original ten records before the append so the expected list is easy to check.

=SORTBY(tblSort,
        IF(tblSort[City]="Pune",1,IF(tblSort[City]="Nashik",2,3)),1,
        tblSort[Amount],-1,tblSort[Order ID],1)

The first SORTBY key is calculated from the City values in the original order. Every record gets exactly one numeric priority. In the original fixture Pune contributes the first four IDs. Their amounts descend from ₹220 to ₹64. Nashik comes next, with BLK-1002 at ₹270 before BLK-1010 at ₹90. The remaining cities now contribute a combined third group. Its first record is BLK-1007 at ₹1,299. That exceptionally high amount does not outrank the first two priority groups because the decision key comes first.

Verify the key on at least three different records

  1. Inspect AMN-1003. Its City is Pune. The first IF test assigns 1, regardless of whether its amount is high compared with others. It appears in the first group.
  2. Inspect BLK-1002. The first IF condition is false and the Nashik condition is true. Its assigned priority is 2. It is a useful check because its amount of ₹270 is larger than any original Pune amount while it still belongs behind Pune.
  3. Inspect BLK-1007. Solapur is neither special city. The fallback priority is 3. Within that group its amount ₹1,299 makes it first. The whole amount remains the source ₹2,870.
  4. On the scratch copy, reverse the numeric priority for Pune and Nashik. Verify which group moves first without any change to each order’s source fields. Restore the original keys after the check.

The priority values could also come from a documented helper column or a small approved lookup. The helper is useful when the reader should be able to inspect the priority in the output. The formula key lets you keep it out of the displayed report while applying it in a predictable way. If the list of special cities changes frequently, consider a separate mapping of city names to numeric priorities and test how missing cities are handled. A named business mapping is easier to review than a long series of undocumented nested conditions.

Keep the selected fields aligned through a narrower output

Suppose someone needs a two-column extract containing just Order ID and Amount. In a client supporting CHOOSECOLS, use =CHOOSECOLS(SORTBY(tblSort,tblSort[Amount],-1,tblSort[Order ID],1),1,4) while the original five-field layout is active. The inner operation ranks all Table records. The outer operation keeps only fields 1 and 4 of that ranked result. The output starts with BLK-1007 and ₹1,299. It has ten rows and two columns and still describes complete associations between ID and amount.

You can also choose the two columns first and then sort by the amount’s position in the new result. Here that position is 2, so =SORT(CHOOSECOLS(tblSort,1,4),2,-1) ranks the same original unique amounts. Sorting a two-field result with index 4 is a layout mistake. Verify the shape at each function boundary rather than using one index throughout. When new source fields are inserted before Amount, update the projection as well as the headings. Using a named sort key makes the ordering more explicit, but it does not automatically fix an unrelated numeric selection of output fields.

For a student on a client without CHOOSECOLS, the full five-field ranked output remains a valid exercise. Read the ID and amount fields directly there or make a verified two-column scratch values copy. An intentionally small delivered extract should still carry its actual sort policy. If the recipient also needs to verify tie decisions, include all fields necessary to audit those decisions or state the sorting keys separately.

Separate presentation order from data repair

Imagine a source amount displayed as 1299, but the stored value is text. That input should be repaired or explicitly treated as text according to the source policy before trusting a numeric ranking. Test the type with ISNUMBER on the original cell. Number format can change how a numeric value looks, and the comparison key still depends on what was stored. Keep a raw import and a verified conversion. Repair only the intended numeric fields, because order IDs and other values may need to stay text. An ID like O0024 must retain its leading zeros even while prices are converted to numbers.

Use a test record that distinguishes two plausible keys

BLK-1007 is an unusual first check. It has both the largest amount, ₹1,299, and the longest duration, 18 minutes. A report that mistakenly uses Mins instead of Amount can still show the expected first ID. Check the second position. Amount descending should show BLK-1002 at ₹270. The duration descending report would show BLK-1010 at 17 minutes. The two reports have different questions even though their largest record happens to coincide. The same issue shows up in reverse: the top City priority could match a large amount on some days by coincidence.

To design a strong test, find a record with an unusually high value in one possible sort field and a low value in the other. BLK-1010’s ₹90 is small, while its 17 minutes rank high. Check where that record belongs under both views. If the source changes, you can deliberately create a differing test on a scratch tab. Avoid altering active source records simply to make the formulas easier to validate.

When a workbook has a lot of different consumers, reserve a short compare block with the expected first, second and last IDs. Give each output a separate label. If there are ties, verify a specific tie case with the actual dates and sequence. That combination is more informative than comparing only the sort arrow or the first visible amount. Keep the source’s original record count on the same check sheet so an ordering check also has an independent population control.

After repairing a key, compare a known leading and trailing ID, the count of records and one independent amount total. A worksheet can pass the amount total yet rank the wrong record first because a key list is shifted. It can also have the correct order for a few examples and omit new records due to its input boundaries. Both numeric and structural controls make the result explainable.

Keep the original output headings with the chosen display shape. If you switched the sort from Amount to Mins, label the report “fastest first” or “longest first” as appropriate and confirm the direction. The time column’s units need to be consistent across the input, such as minutes for every record. Comparing 18 minutes with 12 seconds as if both numbers were minutes could lead to a perfectly calculated, poorly defined ranking. Normalize units in a named field before comparing mixed measurements.

Build a short ranked extract with explicit tie policy

Choose a population before taking the first two rows

In the ten-order lab, the largest two amounts overall are ₹1,299 and ₹270, from BLK-1007 and BLK-1002. The first two records from the city-first output are AMN-1005 and BLK-1004 because Kolhapur and Nagpur come first. Neither construction answers “the two largest Pune orders.” That request needs the Pune population first. In the original data, Pune has 220, 150, 110 and 64. The two leading records are BLK-1009 and BLK-1006, totaling ₹370.

In a supporting Excel client, TAKE can return the first two rows of a sorted array. To try the Pune result with the original five-field schema, use a clear area and filter the rows first. For this controlled test there are at least two Pune orders:

=TAKE(SORT(FILTER(tblSort,tblSort[City]="Pune"),4,-1),2)

The filter produces a five-field result with Amount in its fourth position. The sort makes the largest Pune order first. TAKE reads two leading output rows. Take care when applying the idea to a new data set. If there are no matches, decide which message or result should appear instead of sorting a no-match placeholder as a five-field record. If there is only one result, explicitly define whether to show that one record or say the report needs more observations.

After BLK-1011 joins with amount ₹420, the largest two Pune values become ₹420 and ₹220, totaling ₹640. The largest two in the whole Table are now ₹1,299 and ₹420, totaling ₹1,719. Verifying the city and global reports separately reveals which population the formula read. Checking only whether a high amount appears somewhere in both reports is a weak test.

Decide how to handle ties at the last displayed row

Three watch sessions tie at 72 minutes. If a report takes only two rows after the full three-key ranking, it chooses WV-26 and WV-22. WV-23 also meets the leading duration but loses on the final tie. If the decision is to honor every session with the top recorded duration, filter for that duration or use a ranking rule that includes all ties. Then all three qualify. “First two rows using these keys” and “all rows tied for the leading duration” are different reporting requirements.

Preserve the logic on the report instead of adding a hidden manual selection step. A note such as “Longest duration first, then earliest date, then original sequence” explains why two equal displayed durations are ordered differently. If the report feeds another list, record whether it has a row limit and whether that limit can omit ties. The output shape matters when results are later pasted into a fixed form.

Check the output and the key before rebuilding the source

  • The top row is correct in one report but not another. Read the primary sort key first. A city-first sort uses its amount key only within each city. Check the first city and its largest amount rather than expecting the global maximum.
  • The formula returns a value error. Check that SORTBY’s participating keys have the right lengths and are one row or one column in the appropriate direction. Verify the order argument is 1 or -1. SORT’s position must refer to an actual field in its current input.
  • Equal amounts change order unexpectedly. Check that the next key is a numeric date and the last key has unique values in the relevant group. Include enough fields to make the comparisons understandable.
  • The new record is absent. Verify the named Table includes it, or that the fixed input references were extended together. If it is filtered out, compare its actual device, city or amounts with the rule.
  • High-looking values go to the wrong position. Check that OCR, pasted data or local formatting did not make numeric values into text. Repair the stored amount in a copy and recheck a known largest and smallest order.
  • The output could not expand. Inspect the intended spill area. Move independent notes and labels outside it. A wider source field or appended order can increase what the output needs.

If a report must show a fixed historical ranking, keep a verified values snapshot and state the original date or source version. A live sort result recalculates with the underlying data. It is the right choice for an active queue, but it cannot serve as the only evidence of what a different reader saw yesterday. Use the verified source IDs when comparing the two results.

Quiz. Predict the relative order

Which row begins the original amount-first report?

BLK-1007 in Solapur at ₹1,299. The Amount field is the strongest key. The source itself still begins with BLK-1001.

Why is the first city-first row AMN-1005?

Kolhapur is alphabetically first in the fixture. The sorting formula ranks by City before using Amount. The ₹1,299 Solapur row is first inside its own city, not first overall.

What does 4 mean in the original SORT formula?

It selects the fourth position inside the input data array. In the five-field Orders layout that position is Amount. Insert a new field before it and the position can change.

How can you sort order IDs by time while returning no time column?

Use the ID column as SORTBY’s return array, and pass the corresponding Mins column as its key. Both cover the same Table data rows. In ascending order the shortest recorded time supplies the first ID.

Which record wins between the two November 2 sessions that both last 72 minutes?

WV-22 wins because the third key is Import Seq ascending and its sequence is 2 rather than 3. Duration and date are equal, so those earlier keys cannot decide.

Which SORT argument lets the Periods example move columns?

The fourth argument TRUE sets column sorting. Index 2 then refers to the numeric row within the two-row array. The period labels move with their matching numeric values.

Interview practice. Explain a dynamic ranking

Why might you prefer SORTBY while a worksheet schema is changing?

Its key can name a structured field. In the experiment the named Amount field remains the key even after adding a new sequence field before it. SORT’s numbered column can start referring to a new field. Check the output layout separately.

How do you verify a top-two report with ties?

State the population, all ranking keys and what should happen at the cutoff. Apply the actual rule before counting returned rows. A request for two selected rows is different from a request for all sessions tied for the highest duration.

Why can an aligned-key error survive a dimension check?

Two six-row lists can start at different source positions. The mismatched example gives WV-21 the key for WV-22. Verify the first and last key-record associations by ID even when both ranges contain the right number of cells.

How do you filter data before sorting by several keys?

Apply one shared mask to the output fields and each separate key, then sort the aligned results. Provide an explicit no-match state outside the sort branch. Test a known multi-record selection and an empty selection.

How would you hand off a report that should remain reproducible?

Record the source extent and version, exact ranking rules and expected leading IDs. If the workbook will stay recalculating, test a new row and a tied value. For a fixed prior decision, use a verified values copy with the criteria and time noted.

Revision cards

  • SORT. Choose a numeric position within the current array.
  • SORTBY. Give aligned key fields and separate directions.
  • Key order. Read the next key only after previous keys tie.
  • Shape. A sorted array retains the dimensions of its input.
  • Filtered key. Apply the same condition to records and every independent key.
  • Source integrity. A formula result changes its own ordering without rearranging the original list.

Microsoft references

Continue practising: explore the existing Excel Task Hub for additional exercises.