View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default Sharing a neat trick

This one even better

Let's say data A1:A10
in B1: enter 1, and B2 enter 2 highlight b1&b2 copy down to B10, select
b1:b10 copy to b11. Now you have two sets of 1:10
select both column A and B, sort on column B ascending order, then delete
column B

"MartinW" wrote:

I just stumbled over a neat trick that I thought I should share.
To expand data in a column so that there is a blank cell
between each row.

Put some data into A1 to A10
Put 1 into B1
Highlight B1 and B2
Grab the fill handle and drag down to B19
That should leave 1 blank 2 blank...etc in col B
Put =INDIRECT("A"&B1) in C1
Grab the fill handle and drag down to C19
That should leave your column A data in column C
separated by the #REF error.

Whilst column C is still selected
Tap F5SpecialFormulas
Uncheck Numbers, Text and Logicals and leave
Errors checked.
OK out
Then tap delete

Do a CopyPaste Values on column C
and delete columns A and B

Not groundbreaking stuff but I'm sure it will come in very
handy in the right situation.

Regards
Martin