#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default missing data

i have a large spreadsheet with missing data. Not all cells are fully
populated but the info is the same as the column above. how can i populate
the missing cells by copying the previous cell (where there is info) without
doing it manually. sample of data hereunder

Date
01.02.2006



20.03.2006



06.04.2006


07.04.2006



15.04.2006

please help. thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default missing data

Hi,

Insert a 'helper column' to the right of you data then assuming your data
are in A1 down put this in B1
=A1
Then put this in B2
=IF(A2="",B1,A2)
Drag down to the same length as Column A
Copy the helper column then in A1
Edit|Paste special
Select 'Values' and click OK
Delete the helper column

Mike

"vonoise" wrote:

i have a large spreadsheet with missing data. Not all cells are fully
populated but the info is the same as the column above. how can i populate
the missing cells by copying the previous cell (where there is info) without
doing it manually. sample of data hereunder

Date
01.02.2006



20.03.2006



06.04.2006


07.04.2006



15.04.2006

please help. thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default missing data

one way is to select the whole range and use this macro:

Sub cus()
For Each cell In Selection
If Len(cell) 0 Then
cell.Offset(1, 0) = cell.Value
End If
Next cell
End Sub

another - presume yr data is in col A (starting in A1), then in B2 put
the following formula:
=IF(LEN(A1)0,A1,"")
copy down
then select select everything starting from B2 down, copy, go to A2
and paste special as values
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default missing data

Mike is right

the formula should read

=IF(LEN(A1)0,A1,B2)
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default missing data

I'm sure you really meant this :)

Sub cus()
For Each cell In Selection
If Len(cell.Offset(1, 0)) = 0 Then
cell.Offset(1, 0) = cell.Value
End If
Next cell
End Sub

Mike

Mike

"Jarek Kujawa" wrote:

one way is to select the whole range and use this macro:

Sub cus()
For Each cell In Selection
If Len(cell) 0 Then
cell.Offset(1, 0) = cell.Value
End If
Next cell
End Sub

another - presume yr data is in col A (starting in A1), then in B2 put
the following formula:
=IF(LEN(A1)0,A1,"")
copy down
then select select everything starting from B2 down, copy, go to A2
and paste special as values



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default missing data

right, Mike
must be still asleep,though it is almost noon, here
;-)))
I was just balding my head and thinking "why all cells are populated
with 01.02.2006?"
came here and saw your answer
SORRY
thks
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default missing data

thanks Mike & Jarek, u just saved me tons of hours of work

"Jarek Kujawa" wrote:

right, Mike
must be still asleep,though it is almost noon, here
;-)))
I was just balding my head and thinking "why all cells are populated
with 01.02.2006?"
came here and saw your answer
SORRY
thks

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
How to determine the cause of missing data after I importing data LMonro Excel Discussion (Misc queries) 7 October 26th 07 04:00 AM
How do i plot a data set that has one data point missing planet SA Excel Discussion (Misc queries) 1 September 9th 07 07:50 PM
Missing data OB Excel Discussion (Misc queries) 2 September 5th 07 03:08 PM
Looking for Missing Data Dedrie Excel Discussion (Misc queries) 2 January 6th 06 07:58 PM
Import External Data is missing some data Mark D. Brown, MSW Excel Discussion (Misc queries) 0 January 5th 06 06:43 PM


All times are GMT +1. The time now is 05:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"