LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default At each change in data concatenate text values in contiguous ranges

I am editing a book for publication and I want to use Excel as an aid to
compiling the index. I need a way of concatenating the page numbers, which
will
be stored as text values in contiguous ranges of cells that are defined by
changes in a text variable. The concatenated values also need to be separated
by
commas.

Thus, if this is the input:

row0 Col A Col B
row1 antelope 21
row2 antelope 22-3
row3 antelope 25
row4 bears 19
row5 bison 31
row6 bison 33
row7 Colorado 14
row8 Colorado 17

the desired output would be:

row0 Col X Col Y
row1 antelopes 21, 22-3, 25
row2 bears 19
row3 bison 31,33
row4 Colorado 14, 17

(Alternatively the output could be on rows 1, 4, 5, 7 etc; or on rows 3, 4, 6,
8
etc; or anywhere else convenient).

This is similar to the query titled "At each change in data apply
formula", posted by "Shon" on December 11th, 2009, but I'm not
sure that it is quite the same. I would appreciate any suggestions for how to
approach this.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenate contiguous fields on one worksheet into 1 field on ano MargeB Excel Programming 2 October 13th 09 12:36 AM
Gathering data from multiple, non-contiguous ranges Arlen Excel Programming 3 July 23rd 08 07:10 PM
Copy and Paste LAST ROW of data: non-contiguous Row, contiguous Column Sam via OfficeKB.com Excel Programming 8 November 5th 07 07:18 PM
Data validation: concatenate two separate ranges in the List? DaveO[_2_] Excel Discussion (Misc queries) 3 March 21st 07 06:36 PM
TTest with values in non-contiguous ranges Kristina Excel Worksheet Functions 6 August 2nd 05 12:02 AM


All times are GMT +1. The time now is 06:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"