Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think this might be an interesting challenge for someone!
I want to concatenate text in three columns, which would normally be a simple worksheet function. However, if we look at the cells across the three columns, each contains a set of data using carriage returns (essentially like an Alt-Enter). I have no control over the way this data is fed to me as it comes from a database I subscribe to. To put some context on the problem, A is First Name, B is Middle Name, C is Surname. The data would look like: A B C 1 David Robert Hughes Mark Dave Marriott Martin Benjamin Murray 2 Shaun Andrew Flannagan Alison Jane Martin So I would like to combine the data into some sort of output that will lead to the following, with each: 1 David Robert Hughes Mark Dave Marriott Martin Benjamin Murray 2 Shaun Andrew Flannagan Alison Jane Martin It is worth noting that some cells may contain no carriage return entries, while others may have anything up to 20 returns. After some thought, it would make sense for the data to stay in carriage return format as no further Excel analysis needs to be performed, and my next step will be to import the data from each cell into PowerPoint for presentation purposes, with each cell imported to a seperate slide in a PowerPoint presentation. After posting on the Worksheet Functions forum that the only way to do this without VBA looks to be by using the Text to Columns feature and specifying the carriage returns as the deliminator. This is very messy and would result in extra rows. I have basis working knowledge of VBA, so should be able to decypher a reply! Is anyone able to help with some VBA script (marked-up so I can see what its doing!) and pointers? Many thanks, Rob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Carriage returns - how to get rid of them (again) | Excel Discussion (Misc queries) | |||
Carriage returns in the formula bar? | Excel Worksheet Functions | |||
Concatenate columns with cell data containing Carriage Returns | Excel Worksheet Functions | |||
Concatenate cells with carriage returns | Excel Worksheet Functions | |||
Carriage returns | Excel Discussion (Misc queries) |