Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a worksheet with 10,000 rows and 10 columns. In one of those columns
about 25% of the cells are empty. When I export the worksheet in a tab delimited file those blank cells are simply omitted, so in those cases the output record only has nine fields. I need either to put something (the data in the column is numeric but always =0) to indicate a blank (say -1) or to find some way to make the data export put in two consecutive tabs with a blank between them representing the blank cell. Either solution would be OK, but I sort of prefer filling in the fields. -- Thanks for your help - jjk98 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi,
here is a ditty that might hellp.... Sub fillrange() Dim r As Range Dim rn As Range Set r = Cells(1, 3) For i = 1 To 10000 ' or whatever Set rn = r.Offset(1, 0) If IsEmpty(r) Then r.Value = 0 ' or whatever End If Set r = rn Next i End Sub adjust to fit your data/needs Regards FSt1 "jjk98" wrote: I have a worksheet with 10,000 rows and 10 columns. In one of those columns about 25% of the cells are empty. When I export the worksheet in a tab delimited file those blank cells are simply omitted, so in those cases the output record only has nine fields. I need either to put something (the data in the column is numeric but always =0) to indicate a blank (say -1) or to find some way to make the data export put in two consecutive tabs with a blank between them representing the blank cell. Either solution would be OK, but I sort of prefer filling in the fields. -- Thanks for your help - jjk98 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thans for your help, tried it and works fine!
"FSt1" wrote: hi, here is a ditty that might hellp.... Sub fillrange() Dim r As Range Dim rn As Range Set r = Cells(1, 3) For i = 1 To 10000 ' or whatever Set rn = r.Offset(1, 0) If IsEmpty(r) Then r.Value = 0 ' or whatever End If Set r = rn Next i End Sub adjust to fit your data/needs Regards FSt1 "jjk98" wrote: I have a worksheet with 10,000 rows and 10 columns. In one of those columns about 25% of the cells are empty. When I export the worksheet in a tab delimited file those blank cells are simply omitted, so in those cases the output record only has nine fields. I need either to put something (the data in the column is numeric but always =0) to indicate a blank (say -1) or to find some way to make the data export put in two consecutive tabs with a blank between them representing the blank cell. Either solution would be OK, but I sort of prefer filling in the fields. -- Thanks for your help - jjk98 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save As .XML, not exporting blank cells | Excel Discussion (Misc queries) | |||
Excel - Autom. Filter "Empty / Non Empty cells" should come first | Excel Discussion (Misc queries) | |||
Pivot table blank/empty cells | Excel Discussion (Misc queries) | |||
How can I convert empty strings to empty cells? | Excel Discussion (Misc queries) | |||
?? Extra blank lines in 'address' cell after exporting to Excel | Excel Discussion (Misc queries) |