[Solved] Extension that can do Fill Right for format?

Discuss the spreadsheet application
Post Reply
swampwiz
Posts: 40
Joined: Wed Mar 17, 2010 11:30 am

[Solved] Extension that can do Fill Right for format?

Post by swampwiz »

Here's what I want to do. I have a column such that the cells are all different formats - forecolor, typeface, etc., and I want the whole row to have that same format. Fill Right would do it, but it would fill the data, and I want the data to remain the same. I don't think I can do this with the standard Calc. I thought that the color2rows extension would do that for colors (which is what I really need in terms of functionality), but I don't even see how to access that extensions! :knock:
Last edited by Hagar Delest on Wed Oct 12, 2016 7:12 pm, edited 1 time in total.
Reason: tagged [Solved].
Windows XP Professional, Version 5.1, Service Pack 3
OpenOffice 4.1.2
(perhaps later versions since these are really old and obsolete -- MrProgrammer, forum moderator)
FJCC
Moderator
Posts: 9624
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Is there an extension that can do Fill Right for format?

Post by FJCC »

This should do what you want. Select all of the required cells of the formatted column and go to the menu Edit -> Copy. Select the entire block to which you want to transfer the formatting. Choose the menu Edit -> Paste Special and select to paste only the formatting.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Zizi64
Volunteer
Posts: 11505
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Is there an extension that can do Fill Right for format?

Post by Zizi64 »

...or use the Cell styles feature. Create some cell styles with the desired properties and apply them for your cellranges. Use the CTRL-M (Format - Clear Direct Formatting) to reset the manual formatting properties to the default properties of the Style.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
FJCC
Moderator
Posts: 9624
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Is there an extension that can do Fill Right for format?

Post by FJCC »

Tibor's answer is better than mine, styles are the way to go. You can even select a cell and click the New Style From Select button in the Styles and Formatting window (menu Format -> Styles and Formatting, second icon from the right near the top of the window) to create a style directly from your existing work.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
swampwiz
Posts: 40
Joined: Wed Mar 17, 2010 11:30 am

Re: Is there an extension that can do Fill Right for format?

Post by swampwiz »

FJCC wrote:This should do what you want. Select all of the required cells of the formatted column and go to the menu Edit -> Copy. Select the entire block to which you want to transfer the formatting. Choose the menu Edit -> Paste Special and select to paste only the formatting.
We have a winner! :super: :bravo:
Windows XP Professional, Version 5.1, Service Pack 3
OpenOffice 4.1.2
(perhaps later versions since these are really old and obsolete -- MrProgrammer, forum moderator)
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Is there an extension that can do Fill Right for format?

Post by Villeroy »

If you want to expand an area to the right, insert new cells adjacent to the existing area.
If you want to expant A1:C10 --> A1:D10, select D1:D10 and insert cells or insert a whole column.
This will take over the format from the left and adjust all references to your cell range [*]
For instance, =SUM(A1:C1) becomes =SUM(A1:D1), same with charts, named ranges and any other feature that works with references.

[*] In rare cases this can be annoying, so this is a configurable option: Tools>Options>Calc>General> "Expand references ..." When this option is unset, only insertion within the recerenced area (and not adjacent to the right or below) will expand all references.
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
Post Reply