[Solved] Quickly replace blank cells with value above

Discuss the spreadsheet application
Post Reply
moominboy
Posts: 3
Joined: Tue Oct 23, 2012 1:11 pm

[Solved] Quickly replace blank cells with value above

Post by moominboy »

Hi guys! Thanks in advance for any help or info.

I have searched the forums but haven't found what I'm looking for. I have a spreadsheet with details of deliveries, but the format it is in just now isn't right for what I need.

Say row1 starts with the appropriate driver id, name, vehicle, delivery address etc. Just now, it is only the first row which has the driver information like so...

Elan Eslie PY56 BZR 332794660 2004 Bathykolpian Services Theurgy Industrial A Normal


What I would like to do is fill in all the blanks under the drivers appropriate columns with the value above it. I started by doing a2=a1 the dragging and pasting but there's a hell of a lot to do. Is this possible in OO? I know how it's done in Excel but don't have MS Office on this pc.

Sorry if the details I've put in are cramped, I can't figure out how to do a table! :/
Last edited by moominboy on Tue Oct 23, 2012 6:49 pm, edited 1 time in total.
OpenOffice 3.4 on Windows 7
User avatar
JohnSUN-Pensioner
Volunteer
Posts: 876
Joined: Fri Jan 14, 2011 1:21 pm
Location: Kyiv, Ukraine

Re: Quickly replace blank cells with value above

Post by JohnSUN-Pensioner »

May be so?
I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
crusader
Volunteer
Posts: 519
Joined: Sun Jan 20, 2008 5:06 am

Re: Quickly replace blank cells with value above

Post by crusader »

moominboy wrote:I know how it's done in Excel but don't have MS Office on this pc. Sorry if the details I've put in are cramped, I can't figure out how to do a table! :/
If you are referring to the Ctrl+d option in Excel, it is available in LibreOffice; I don't know about OO.
Else, you may wish to specify how you do it in Excel and see if that option is available in OO/LO.
LO 25.2.x on Linux Mint 22.1 Cinnamon
In a world without walls, who needs Window$.
A candle loses nothing by lighting another candle.
moominboy
Posts: 3
Joined: Tue Oct 23, 2012 1:11 pm

Re: Quickly replace blank cells with value above

Post by moominboy »

Thanks for the replies folks!

JohnSun, Just reading up on your link now, but thought I'd reply quickly for Crusaders' question!

This seems to be a concise way of explaining, far better than I could. ;)

EDIT; Thanks JohnSUN, but that's not exactly what I was after. Thought I should probably show a picture, worth a thousand and all that...
oo(1).png
So basically, I'm wanting to be able to somehow highlight all those columns which have blanks in them, probably by ctrl+click each header, then do some magic and fill in a formula so each blank copies the drivers details above it.
Last edited by acknak on Tue Oct 23, 2012 6:08 pm, edited 1 time in total.
Reason: cropped image
OpenOffice 3.4 on Windows 7
gerard24
Volunteer
Posts: 958
Joined: Sat Oct 30, 2010 5:12 pm
Location: France

Re: Quickly replace blank cells with value above

Post by gerard24 »

Not so quickly, but :
  1. Select the whole area (cells with content and blank cells, ex : A1:A50)
  2. Ctrl+C
  3. Select the area from 1st blank cell till the end, ex : A3:A50
  4. Press F2, then write =A2 (or A49) 'cell above cell with focus
  5. Alt+Enter
  6. Select again the whole area
  7. Ctrl+Shift+V
  8. Check 'text', 'number', may be 'format' (what you want to copy) and 'skip empty cells'.
  9. Ok.
If you want to remove formula, make again a paste special unchecking formula.
LibreOffice 6.4.5 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Quickly replace blank cells with value above

Post by Villeroy »

Install the macro package suggested by happy JohnSUN.
Select the whole area and call Tools>Macros>Organize>Basic... MyMacros>DragQueen>cpCells>FillBlanksDown (or some shortcut to that macro)
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
moominboy
Posts: 3
Joined: Tue Oct 23, 2012 1:11 pm

Re: (SOLVED) Quickly replace blank cells with value above

Post by moominboy »

Ah! My fault, sorry JohnSUN! That's what I get for only reading half of a thread. Thanks for all your replies guys!
OpenOffice 3.4 on Windows 7
Post Reply