How to copy a column with conditional format by "value" - Libreoffice 4.1
AFAIK, there's no perfect solution for this kind of task. The best practice depends on the contents of your sheet - especially, if you want to keep formulas, too.
Generally, you can drop the rules regarding conditional formatting by saving the sheet as HTML, and re-loading the HTML into Calc. Of course, this will drop stuff like functions, too - just keeping the calculation results. It will also drop style sheets.
If you want to keep, e.g., functions, you may proceed as described, but keep the original file. Now, copy the imported HTML, and paste just the formats, keeping the original cell content. The result should be a Calc sheet with original cell content and non-conditional formatting. Maybe overkill again, but this depends on your needs...
Related videos on Youtube
Hastur
Updated on September 18, 2022Comments
-
Hastur about 1 year
I have a column that contains the data and a set of rules for the conditional format of the cells.
i.e. the conditional format changes the background colour of some cells if they are negative.
I would like to copy this column with the resulting format and paste it in another place "by value", in our example I want as result a column without any more conditional formatting rules for the cells but only with the computed colour for the background (with the computed format).
- If I use
paste special
with onlytext
andnumber
options checked I lose the background colour. - If I use
paste special
withformat
option checked I copy even the rules.
Is there any way to do it without a macro? Thanks
-
Hastur about 8 yearsIt should be nice to know the reason of the down vote to improve the question.
-
Hastur almost 8 yearsMaybe it is time to think to a macro too...
- If I use
-
Hastur almost 8 yearsThanks for the workaround. Nice. Does the html export keep format as width and height of the cells too? At the time of the question it liked to mess up a little... :)
-
cyberha4 almost 8 yearsHmm - no, cell heigth / width are lost when re-opening the html in Calc.
-
Hastur almost 8 yearsThx again. Next year I will search for the calc wishlists or I will surrend to do a macro...
-
cyberha4 almost 8 yearsJust found out that custom cell heigth / width will be kept if you paste just the formats from the imported HTML to the original content. So, pasting the "direct formats" from the HTML export / import will just transfer stuff like background colors.
-
Hastur almost 8 yearsThx. On Monday I will try with the original file... now I'm without computer.