Hi All,
I'm trying to get a set of data into a certain format, automatically:
In Column A I have the following type of data -
3
4
5
6
9
11
14
15
16
17
33
37
1) I want to return the consecutive number series with less than 3 numbers like: 1,2
2) I also want to return the consecutive number series with 3 or more numbers like: 14-17
3) Then, I want the output of the data to be separated by commas.
4) That result would then be put in parentheses.
5) A count of the numbers would then appear before the parentheses.
The end result of the above example data would look like:
12 (3-6,9,11,14-17,33,37)
Can anyone help?
Thanks in advance!
Duff
I'm trying to get a set of data into a certain format, automatically:
In Column A I have the following type of data -
3
4
5
6
9
11
14
15
16
17
33
37
1) I want to return the consecutive number series with less than 3 numbers like: 1,2
2) I also want to return the consecutive number series with 3 or more numbers like: 14-17
3) Then, I want the output of the data to be separated by commas.
4) That result would then be put in parentheses.
5) A count of the numbers would then appear before the parentheses.
The end result of the above example data would look like:
12 (3-6,9,11,14-17,33,37)
Can anyone help?
Thanks in advance!
Duff