J
john-c
I am editing a book for publication and I want to use Excel as an aid t
compiling the index. I need a way of concatenating the page numbers, whic
wil
be stored as text values in contiguous ranges of cells that are defined b
changes in a text variable. The concatenated values also need to be separate
b
commas
Thus, if this is the input
row0 Col A Col
row1 antelope 2
row2 antelope 22-
row3 antelope 2
row4 bears 1
row5 bison 3
row6 bison 3
row7 Colorado 1
row8 Colorado 1
the desired output would be
row0 Col X Col
row1 antelopes 21, 22-3, 2
row2 bears 1
row3 bison 31,3
row4 Colorado 14, 1
(Alternatively the output could be on rows 1, 4, 5, 7 etc; or on rows 3, 4, 6
etc; or anywhere else convenient)
This is similar to the query titled "At each change in data appl
formula", posted by "Shon" on December 11th, 2009, but I'm no
sure that it is quite the same. I would appreciate any suggestions for how t
approach this.
compiling the index. I need a way of concatenating the page numbers, whic
wil
be stored as text values in contiguous ranges of cells that are defined b
changes in a text variable. The concatenated values also need to be separate
b
commas
Thus, if this is the input
row0 Col A Col
row1 antelope 2
row2 antelope 22-
row3 antelope 2
row4 bears 1
row5 bison 3
row6 bison 3
row7 Colorado 1
row8 Colorado 1
the desired output would be
row0 Col X Col
row1 antelopes 21, 22-3, 2
row2 bears 1
row3 bison 31,3
row4 Colorado 14, 1
(Alternatively the output could be on rows 1, 4, 5, 7 etc; or on rows 3, 4, 6
etc; or anywhere else convenient)
This is similar to the query titled "At each change in data appl
formula", posted by "Shon" on December 11th, 2009, but I'm no
sure that it is quite the same. I would appreciate any suggestions for how t
approach this.