Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Combine multiple rows to 1 row.... help

Can anybody help me with the next problem.
I have an Excel file wich is like folowing :

A B
Name 1 problem1
Name 1 problem2
Name 1 problem3
Name 2 problem1
Name 2 problem2
Name 3 problem1

and so on ....

I have to seperate each name with more columns where the "problems" reside.
So :

A B C D
Name 1 problem1 problem2 problem3
Name 2 problem1 problem2
Name 3 problem1

Anybody a solution to do this automaticly with an formula or macro.
I have about 2000 names !!!

Thanks in advance (I am using Excel 2000)
Jeroen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Combine multiple rows to 1 row.... help

Sub Test()
Dim iLastRow As Long
Dim i As Long

iLastRow = Cells(Rows.Count, "A").End(xlUp).Row
For i = iLastRow To 2 Step -1
If Cells(i, "A").Value = Cells(i - 1, "A").Value Then
Cells(i, "B").Resize(, 253).Copy Cells(i - 1, "C")
Rows(i).Delete
End If
Next i

End Sub



--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Jeroen" wrote in message
...
Can anybody help me with the next problem.
I have an Excel file wich is like folowing :

A B
Name 1 problem1
Name 1 problem2
Name 1 problem3
Name 2 problem1
Name 2 problem2
Name 3 problem1

and so on ....

I have to seperate each name with more columns where the "problems"

reside.
So :

A B C D
Name 1 problem1 problem2 problem3
Name 2 problem1 problem2
Name 3 problem1

Anybody a solution to do this automaticly with an formula or macro.
I have about 2000 names !!!

Thanks in advance (I am using Excel 2000)
Jeroen




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
Match and combine multiple rows into one C. Excel Worksheet Functions 1 December 4th 09 05:08 PM
Combine multiple rows into one. Linnaeus Excel Discussion (Misc queries) 2 September 17th 09 07:33 PM
How to combine information from multiple rows into one Zuzie Excel Discussion (Misc queries) 0 July 24th 08 12:48 PM
combine contents of multiple rows in one row Rohit Excel Discussion (Misc queries) 1 July 14th 08 10:22 PM
Combine Data from Multiple Rows MR Excel Discussion (Misc queries) 1 January 24th 07 06:44 PM


All times are GMT +1. The time now is 04:08 AM.

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

About Us

"It's about Microsoft Excel"