Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default copy / paste without skipping blanks

Hi,

I am trying to sort a worksheet that has all the data in one column. I need to seperate the numbers into one column and the text in another. I tried f5:Go To Special but when it pastes it skips blanks (box not checked) so nothing lines up anymore. How do I do this? Its a large file and I sure don't want to do this manually.

Tia

Todd
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default copy / paste without skipping blanks

Todd, a filter won't filter numbers or characters and keep the blanks
between them also. However, a formula in the columns where you wanted to
paste them, will do it. Let's say the data you want to sort is in column A,
starting in row 1,and you want the numbers in column B and the letters in
column C, and the blank rows still in place as they are in column A.
In cell B1 put the formula =IF(ISNUMBER(A1),A1,"") and fill-down that
formula to the end of the data.
Then in cell C1 put the formula =IF(ISTEXT(A1),A1,"") and fill-down.
To get rid of the formulas and leave only the results, select columns B&C
and copy/paste special over the same cells.

I hope this will help...Mike F


"Todd" wrote in message
...
Hi,

I am trying to sort a worksheet that has all the data in one column. I

need to seperate the numbers into one column and the text in another. I
tried f5:Go To Special but when it pastes it skips blanks (box not checked)
so nothing lines up anymore. How do I do this? Its a large file and I sure
don't want to do this manually.

Tia

Todd



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default copy / paste without skipping blanks

Dim rng as Range, cell as Range
set rng = Range(Cells(1,1),Cells(rows.count,1).End(xlup))
for each cell in rng
if Application.IsNumber(cell) then
cell.offset(0,2).Value = cell
else
cell.offset(0,1).Value = cell
end if
Next

--
Regards,
Tom Ogilvy


"Todd" wrote in message
...
Hi,

I am trying to sort a worksheet that has all the data in one column. I

need to seperate the numbers into one column and the text in another. I
tried f5:Go To Special but when it pastes it skips blanks (box not checked)
so nothing lines up anymore. How do I do this? Its a large file and I sure
don't want to do this manually.

Tia

Todd



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
Copy & Paste Non Blanks Only Igorin Excel Worksheet Functions 4 January 28th 09 01:28 PM
Macro - Copy and Paste repeatedly skipping cells [email protected] Excel Discussion (Misc queries) 5 January 6th 07 11:22 PM
copy a list and skipping blanks Art Excel Worksheet Functions 20 November 29th 06 03:21 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Worksheet Functions 1 September 3rd 06 07:56 PM
Paste Special Skip Blanks not skipping blanks, but overwriting... gsrosin Excel Discussion (Misc queries) 0 February 22nd 05 03:33 AM


All times are GMT +1. The time now is 06:09 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"