Solved

macro to Merge Duplicate cells in a column excel

Posted on 2010-11-29
2
560 Views
Last Modified: 2012-05-10
Hello Guys,

I've got an excel sheet which looks like this

Device                        Interface monitored
cisco                              eth0
cisco                              eth1
nokia                        eth0
juniper                        e2
bluecat                        e4
bluecat                        e6
bluecat                        e8
bluecat                        Ethernet-Mgmt
bluecat                        Serial-Mgmt
AS24                        FastEthernet0/48 · AS01
AS25                        FastEthernet0/1 - CoreSwitch2
AS25                        GigabitEthernet0/1 · GBX01-6509-1
AS25                        GigabitEthernet0/2 · GBX01-6509-2

I want the output to be

Device                        Interface monitored
cis                              eth0
co                              eth1
nokia                        eth0
juniper                        e2
bl                              e4                  
ue                              e6                  
c                              e8            
a                              Ethernet-Mgmt
t                              Serial-Mgmt
AS24                        FastEthernet0/48 · AS01
A                                FastEthernet0/1 - CoreSwitch2
S                              GigabitEthernet0/1 · GBX01-6509-1
25                              GigabitEthernet0/2 · GBX01-6509-2


PLEASE NOTE: I only cut the device name down to show that its merged, I dont want the name to be cut down like this in anyway, I just want duplicate names merged with the interfaces intact

I use excel 2007

Thanks

points go to the macro which could do this perfectly

Oh yeah, I already know that merging cells is evil, but I still want it this way. Thanks
0
Comment
Question by:heiba
  • 2
2 Comments
 

Accepted Solution

by:
heiba earned 0 total points
Comment Utility
0
 

Author Closing Comment

by:heiba
Comment Utility
Found what I'm looking for and applied it
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now