Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EMB EMB is offline
external usenet poster
 
Posts: 3
Default How can I fill blank cells in a list with previous filled value?

Frequently I get files with columns of data. If the value before is the
same, the value is blank in the current cell and other rows - if still
same....HIP - so below 64610927 should be on 2 more lines, and 64511495
should be on 3 more lines. How can I fill in those values. So far I can
only do it for one blank value. My file is long and this can be time
consuming.....

64610927
64603442
64610927


64610927
64511495



64610891
64607271
64610891
64614036
64611495


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How can I fill blank cells in a list with previous filled value?

The below method will work only if the cells are genuine blanks...

--Select a unused cell say E2
--Enter the formula in cell E2 which references the top cell (=E1)
--Copy the cell
--Keeping the copy select the data range in ColA
--Press F5. From Goto window select blanks
--This will select all blanks.. Now Right clickPasteSpecialFormulas. will
fill in with the data you need..
--Once done you can select col A Copy PasteSpecialValues to turn
formulas to actual values


If the above doesnt work then try the below macro..(if
the data is imported from some other source it may not be the case.)

Sub MyMacro()
Dim lngRow As Long
For lngRow = 2 To Cells(Rows.Count, "B").End(xlUp).Row
If Trim(Range("A" & lngRow)) = "" Then _
Range("A" & lngRow) = Range("A" & lngRow - 1)
Next
End Sub

If this too doesnt work post sample data...

If this post helps click Yes
---------------
Jacob Skaria


"EMB" wrote:

Frequently I get files with columns of data. If the value before is the
same, the value is blank in the current cell and other rows - if still
same....HIP - so below 64610927 should be on 2 more lines, and 64511495
should be on 3 more lines. How can I fill in those values. So far I can
only do it for one blank value. My file is long and this can be time
consuming.....

64610927
64603442
64610927


64610927
64511495



64610891
64607271
64610891
64614036
64611495


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How can I fill blank cells in a list with previous filled value?

Highlight the column with those numbers in, and press F5 (GoTo), then
click Special and click on Blanks. You should see only the blank cells
highlighted, with the first blank cell as the active cell. Then begin
to enter a formula by typing = and then click on the cell immediately
above your first blank cell, then do CTRL-Enter. The formula will
appear in each of the blank cells, and you can fix the values if you
wish.

Hope this helps.

Pete

On Aug 3, 4:49*pm, EMB wrote:
Frequently I get files with columns of data. *If the value before is the
same, the value is blank in the current cell and other rows - if still
same....HIP - so below 64610927 should be on 2 more lines, and 64511495
should be on 3 more lines. *How can I fill in those values. *So far I can
only do it for one blank value. *My file is long and this can be time
consuming.....

64610927
64603442
64610927

64610927
64511495

64610891
64607271
64610891
64614036
64611495


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
Omitting blank cells until filled in? Carissa Excel Worksheet Functions 3 March 5th 09 09:30 PM
Fill cells below until next cell is filled JKeef Excel Worksheet Functions 1 December 20th 07 09:55 PM
Macro Request: Fill in empty cells with previous Filled cell in column Artis Excel Worksheet Functions 2 June 25th 07 08:30 PM
Counting blank and filled cells within a range. greg7468 Excel Discussion (Misc queries) 3 June 28th 05 10:41 PM
How would I fill blank cells with the data from a previous cell? Clive Darling Excel Discussion (Misc queries) 3 January 6th 05 01:10 AM


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