Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
filky
 
Posts: n/a
Default Filling in missing data


Hi,
I have 6 worksheets with 65,536 lines filled in each one. There are
five columns. The fourth and fifth are filled in but the first three
are only filled in every 20 or 30 lines (the number is not
consistent).
I would like to be able to write a routine or formulae that could fill
in the empty cells with the last bit of data so I have a full sheet to
work with. For example,

John 123 456 789 abc
523 def
566 ghi
Fred 423 623 789 abc
523 def
566 ghi

Needs to look like this;

John 123 456 789 abc
John 123 456 523 def
John 123 456 566 ghi
Fred 423 623 789 abc
Fred 423 623 523 def
Fred 423 623 566 ghi

Formatting is a little off so I ave attached a screenshot if it helps.
Any help would be much appreciated as this could be a very long exercise
otherwise..!

Thanks

Paul.


+-------------------------------------------------------------------+
|Filename: Excelforum#1.jpg |
|Download: http://www.excelforum.com/attachment.php?postid=4930 |
+-------------------------------------------------------------------+

--
filky
------------------------------------------------------------------------
filky's Profile: http://www.excelforum.com/member.php...o&userid=11801
View this thread: http://www.excelforum.com/showthread...hreadid=554906

  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Filling in missing data

Try this; I taking you literally that you have all rows filled.

Make copy of data first!

Sub FillABC()
With Worksheets("Sheet1") '<=== change
For r = 2 To 65536 '<== assuming data starts row 2
If .Cells(r, 1) = "" Then
.Cells(r, 1) = .Cells(r - 1, 1)
.Cells(r, 2) = .Cells(r - 1, 2)
.Cells(r, 3) = .Cells(r - 1, 3)
End If
Next r

End With
End Sub

HTH

"filky" wrote:


Hi,
I have 6 worksheets with 65,536 lines filled in each one. There are
five columns. The fourth and fifth are filled in but the first three
are only filled in every 20 or 30 lines (the number is not
consistent).
I would like to be able to write a routine or formulae that could fill
in the empty cells with the last bit of data so I have a full sheet to
work with. For example,

John 123 456 789 abc
523 def
566 ghi
Fred 423 623 789 abc
523 def
566 ghi

Needs to look like this;

John 123 456 789 abc
John 123 456 523 def
John 123 456 566 ghi
Fred 423 623 789 abc
Fred 423 623 523 def
Fred 423 623 566 ghi

Formatting is a little off so I ave attached a screenshot if it helps.
Any help would be much appreciated as this could be a very long exercise
otherwise..!

Thanks

Paul.


+-------------------------------------------------------------------+
|Filename: Excelforum#1.jpg |
|Download: http://www.excelforum.com/attachment.php?postid=4930 |
+-------------------------------------------------------------------+

--
filky
------------------------------------------------------------------------
filky's Profile: http://www.excelforum.com/member.php...o&userid=11801
View this thread: http://www.excelforum.com/showthread...hreadid=554906


  #3   Report Post  
Posted to microsoft.public.excel.misc
Franz Verga
 
Posts: n/a
Default Filling in missing data

Nel post
*filky* ha scritto:

Hi,
I have 6 worksheets with 65,536 lines filled in each one. There are
five columns. The fourth and fifth are filled in but the first three
are only filled in every 20 or 30 lines (the number is not
consistent).
I would like to be able to write a routine or formulae that could fill
in the empty cells with the last bit of data so I have a full sheet to
work with. For example,

John 123 456 789 abc
523 def
566 ghi
Fred 423 623 789 abc
523 def
566 ghi

Needs to look like this;

John 123 456 789 abc
John 123 456 523 def
John 123 456 566 ghi
Fred 423 623 789 abc
Fred 423 623 523 def
Fred 423 623 566 ghi

Formatting is a little off so I ave attached a screenshot if it helps.
Any help would be much appreciated as this could be a very long
exercise otherwise..!

Thanks

Paul.


Hi Paul,

select the range you want to fill, then press F5 click on Special, select
Blanks, then Ok. Without moving selection type = and then Arrow Up. Now Ctrl
+ Enter.
To save this, select the zone and make Copy & PastSpecial, Values.

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #4   Report Post  
Posted to microsoft.public.excel.misc
filky
 
Posts: n/a
Default Filling in missing data


Struggling a bit to make the code work but I get the idea. Thanks very
much.


--
filky
------------------------------------------------------------------------
filky's Profile: http://www.excelforum.com/member.php...o&userid=11801
View this thread: http://www.excelforum.com/showthread...hreadid=554906

  #5   Report Post  
Posted to microsoft.public.excel.misc
filky
 
Posts: n/a
Default Filling in missing data


Struggling a bit to make the code work but I get the idea. Thanks very
much.


--
filky
------------------------------------------------------------------------
filky's Profile: http://www.excelforum.com/member.php...o&userid=11801
View this thread: http://www.excelforum.com/showthread...hreadid=554906



  #6   Report Post  
Posted to microsoft.public.excel.misc
Light
 
Posts: n/a
Default Filling in missing data

Very simply could you do something like
=IF(A2<"";A2;B1)?

"Franz Verga" wrote:

Nel post
*filky* ha scritto:

Hi,
I have 6 worksheets with 65,536 lines filled in each one. There are
five columns. The fourth and fifth are filled in but the first three
are only filled in every 20 or 30 lines (the number is not
consistent).
I would like to be able to write a routine or formulae that could fill
in the empty cells with the last bit of data so I have a full sheet to
work with. For example,

John 123 456 789 abc
523 def
566 ghi
Fred 423 623 789 abc
523 def
566 ghi

Needs to look like this;

John 123 456 789 abc
John 123 456 523 def
John 123 456 566 ghi
Fred 423 623 789 abc
Fred 423 623 523 def
Fred 423 623 566 ghi

Formatting is a little off so I ave attached a screenshot if it helps.
Any help would be much appreciated as this could be a very long
exercise otherwise..!

Thanks

Paul.


Hi Paul,

select the range you want to fill, then press F5 click on Special, select
Blanks, then Ok. Without moving selection type = and then Arrow Up. Now Ctrl
+ Enter.
To save this, select the zone and make Copy & PastSpecial, Values.

--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



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
Missing data value in a chart. Valerie Charts and Charting in Excel 1 May 9th 06 05:00 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Query Wizard - Filter Data - Dropdown missing? jameshalligan Excel Discussion (Misc queries) 0 July 26th 05 11:21 AM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
interpolate missing data between points Rocket Rod Excel Worksheet Functions 2 February 27th 05 07:24 PM


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