Daily Archives: 18-May-2019

Using Excel to Convert a Number List to Dashed String of Ranges

While working on a test report for an aircraft manufacturer this week, I needed to convert a large number of number lists to strings of dashed ranges. For example, suppose you are given a list {1, 2, 3, 5, 6, 7, 8, 10}. Converting this list to a dashed set of ranges means generating the string "1-3, 5, 6-8, 10." Figure 1 shows another example with an optional prefix added to each number. Continue reading

 
Posted in Excel | 1 Comment