Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Consolidating Data from Columns into Rows

I need an efficient way to considate data from columns (i.e. 2 and 3) into
rows based on column 1.

For example:

Column 1 Column 2 Column 3 Column 4 Column 5
AAAA 1A1A1 1111
AAAA 2A2A2 2222
BBBB 1B1B1 1111

INTO

AAAA 1A1A1 1111 2A2A2 2222
BBBB 1B1B1 1111

The purpose is to consolidate the data into rows for email blasts (through
Word mail merge). Otherwise, users receive multiple emails for various data.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Consolidating Data from Columns into Rows


Sub lineupintorows()
On Error Resume Next
For i = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1

If Cells(i + 1, 1) = Cells(i, 1) Then

For j = 2 To Cells(i + 1, 1).End(xlToRight).Column
lc = Cells(i, 1).End(xlToRight).Column + 1
Cells(i, lc) = Cells(i + 1, j)
Next j
Rows(i + 1).Delete

End If

Next i
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mike" wrote in message
...
I need an efficient way to considate data from columns (i.e. 2 and 3) into
rows based on column 1.

For example:

Column 1 Column 2 Column 3 Column 4 Column 5
AAAA 1A1A1 1111
AAAA 2A2A2 2222
BBBB 1B1B1 1111

INTO

AAAA 1A1A1 1111 2A2A2 2222
BBBB 1B1B1 1111

The purpose is to consolidate the data into rows for email blasts (through
Word mail merge). Otherwise, users receive multiple emails for various
data.

Any suggestions?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Consolidating Data from Columns into Rows

Excel 2007 Table
Consolidate table data and transpose.
Accommodates multiple, partial, labeled records and
transposes unique row data into labeled columns.
No code used.
http://www.mediafire.com/file/wygjmtwmxmj/07_28_09.xlsx
Reply
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
Consolidating Rows Cow Girl Excel Discussion (Misc queries) 0 July 22nd 09 04:25 PM
Compare and consolidating duplicated rows Jen Excel Discussion (Misc queries) 24 March 4th 08 08:49 PM
Consolidating Rows Jason Excel Discussion (Misc queries) 2 July 26th 06 02:37 AM
consolidating two columns ad Excel Discussion (Misc queries) 1 May 23rd 05 11:11 PM
consolidating two columns Duke Carey Excel Discussion (Misc queries) 0 May 23rd 05 06:11 PM


All times are GMT +1. The time now is 06:44 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"