Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Vertical to Horizontal & Eliminate Duplication

Hi

Im working with Excel 2007

I have a list of names in A1:A10. Some of the names are exist more than once.
I want to copy he list to C1:L1 and eliminate duplication in one action

Thanx

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 120
Default Vertical to Horizontal & Eliminate Duplication

I hope it will work even in 2007. If you are free as to the space to the
right from your new header use the macro:

Sub SetHeaderFromTheList()
Dim DummyRange As Range
Range("A1").EntireRow.Insert
Set DummyRange = Range("B1:B10")
' (auxiliary column range located wherever, will be cleared)
Range("A1") = "Dummy header"
Range("A1:A11").AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=DummyRange, Unique:=True
Range("A1").EntireRow.Delete
DummyRange.Copy
Range("C1").PasteSpecial Transpose:=True
DummyRange.Clear
End Sub

--
Petr Bezucha


"NirOrtal" wrote:

Hi

Im working with Excel 2007

I have a list of names in A1:A10. Some of the names are exist more than once.
I want to copy he list to C1:L1 and eliminate duplication in one action

Thanx

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
Freeze Vertical and Horizontal rayybay Excel Discussion (Misc queries) 4 August 2nd 08 09:48 AM
I want horizontal and vertical lines David Ames Excel Worksheet Functions 0 June 26th 08 04:31 PM
Vertical to Horizontal Terry Excel Discussion (Misc queries) 3 November 25th 07 04:11 AM
Eliminate List Duplication FX 2000 Inc Excel Discussion (Misc queries) 2 January 28th 07 08:07 PM
Vertical to horizontal swchee Excel Discussion (Misc queries) 5 June 20th 05 04:25 AM


All times are GMT +1. The time now is 08:55 PM.

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"