I have a list of codes in a column and I essentially need to duplicate them without sorting them.
For instance,
I have:
tw3
uw3
124
and I need
tw3
tw3
uw3
uw3
124
124
...
but I can't let them get out of the order they are currently in.
I have a list of codes in a column and I essentially need to duplicate them without sorting them.
For instance,
I have:
tw3
uw3
124
and I need
tw3
tw3
uw3
uw3
124
124
...
but I can't let them get out of the order they are currently in.
1) In the next column over, put in a numeric sequence 1,2,3 etc that indicates the order they started in.
Please Login or Register to view this content.
2) Highlight the cells of data in BOTH columns, copy them, then paste a second set of data below the first
Please Login or Register to view this content.
3) Highlight the new larger data set, both columns, and sort by the numeric sequence you added.
Please Login or Register to view this content.
4) Delete the numeric sequence
Last edited by JBeaucaire; 05-04-2011 at 07:52 PM.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
if your data starts in a1 then in b1 =INDEX(A:A,CEILING(ROW(A1)/2,1))dragged down then copy/paste values over itself
"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
Thanks!
I was trying to do some kind of primary key to keep them sorted like that but I couldn't wrap my head around it for some reason.
Much appreciated
If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks