XL 2003
Am I tired so don't see solution?
Transpose names without blanks:
Book1.xls
XL 2003
Am I tired so don't see solution?
Transpose names without blanks:
Book1.xls
Last edited by zbor; 09-21-2009 at 09:17 AM.
Never use Merged Cells in Excel
Given duplicity of names I would say you need an Array, eg:
Best to conduct a COUNTA elsewhere to determine how many times the Array is required, eg:![]()
B3: =INDEX($A$1:$N$1,SMALL(IF($E$1:$N$1<>"",COLUMN($E$1:$N$1)),ROWS(B$3:B3))) confirmed with CTRL + SHIFT + ENTER copied down
And use that as a precursor in B3![]()
B2: =COUNTA(E1:N1)
![]()
=IF(ROWS(B$3:B3)>$B$2,"",INDEX(....)) confirmed with CTRL + SHIFT + ENTER copied down
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
You can do this the long way....
Selecting your row of data -> Copy
Select the top row of where you want to horizontally transpose it -> Paste Special -> Transpose -> Edit -> Go To -> Special -> Blanks -> Delete
Or macro it out to something like:
![]()
' Macro TransposeAndDeleteBlanks ' Range("e1:N1").select 'Change the above range to meet your needs of what you are transposing Selection.copy Range("b3").select 'Change the above range to o where you want to transpose to Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True Selection.SpecialCells(xlCellTypeBlanks).Select Application.CutCopyMode = False Selection.Delete Shift:=xlUp End Sub
Last edited by GuruWannaB; 09-21-2009 at 09:22 AM.
I help because of the Pavlovian dog that resides in the inner me...so if you are happy with the results, please add to my reputation. It helps keep me motivated!
Please mark your threads as Solved once it is solved. Check the FAQ's to see how.
or just put
=COUNTA($E$1:E1) in e2 drag across then
index match
=INDEX($E$1:$N$1,MATCH(ROWS($A$1:A1),$E$2:$N$2,0)) dragged down
you can remove duplicates later with advanced filter if required.
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Great!, Works!
Yes, forgot to say.. I tried to avoid extra row...
Last edited by zbor; 09-21-2009 at 09:18 AM.
zbor, for the benefit of future users who are looking up similar topic, it is best to tell us if you tried all suggestions and which of the suggestions worked.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
When I saw martinwillson I realize that it's the way I'll do usually
Well, it's end of workday, my brain stopped.
But before I saw it, I've tested DQ solution and works great (didn't doubt). However, I've need some time to adjust.
I didn't try macro (prefere non-macro solutions.. but one day I'll learn it... it's just not that day yet)
You can do macro-less using the same approach -- assuming E1:N1 are either constants or blanks (not formula nulls)...
Highlight E1:N1 -> F5 -> Special -> Constants -> OK -> CTRL + C -> B3 -> ALT + E -> S -> V -> ALT + E -> OK
Here are both solutions:
Book1.xls
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks