?
Solved

Excel Combining Text

Posted on 2014-02-21
6
Medium Priority
?
304 Views
Last Modified: 2014-02-21
Believe this is an easy question, but just cant figure it out.  Simplified, by spreadsheet has two basic fields; an identifier (A, B, C etc) and a text remarks field.  What I want to do is combine all of the A's remarks, all of the B's remarks etc.  

Understand I could manually do this using transpose for each group, but since it is a very long list, I was hoping for an easier way.  Thanks!

A      Remark1                                    
A      Remark2            A      Remark1      Remark2      Remark3      
A      Remark3      to      B      Remark4      Remark5            
B      Remark4            C      Remark6      Remark7      Remark8      Remark9
B      Remark5                                    
C      Remark6                                    
C      Remark7                                    
C      Remark8                                    
C      Remark9
0
Comment
Question by:PhxDB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Author Comment

by:PhxDB
ID: 39876991
Actually, that is what I plan to do once I transpose the Remarks into a single row:

A  B2&":"&C2&";"&D2   to make
A  Remarks1; Remarks2; Remarks3

But I cant figure out how to first get them lined up like that.  Tried to use If statements, but that got way to unwieldy  to go down the length of the list.  Thanks
0
 
LVL 40

Expert Comment

by:als315
ID: 39877055
Simplest way - to do it with VBA macro. Is it acceptable?
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:PhxDB
ID: 39877061
Not very good at VBA, but will give it a shot.  Thanks.
0
 
LVL 19

Accepted Solution

by:
regmigrant earned 2000 total points
ID: 39877074
try the attached - it uses index and match to swap columns for rows as follows
=IF($D2=INDIRECT("A"&COLUMN()-5+MATCH($D2,$A$1:$A$10,0)),INDIRECT("B"&COLUMN()-5+MATCH($D2,$A$1:$A$10,0)),"")

Obviously you will need to adjust the arrays (A1:A10) to match your data and have a unique list of identifiers in column D (use autfilter, copy, unique values only)

let me know if the adjustment is problematic
transpose.xlsx
0
 

Author Closing Comment

by:PhxDB
ID: 39877095
That was exactly what I was looking for.  Thanks regmigrant!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question