2

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 only text and number options checked I lose the background colour.
  • If I use paste special with format option checked I copy even the rules.

Is there any way to do it without a macro? Thanks

2
  • It should be nice to know the reason of the down vote to improve the question.
    – Hastur
    Commented Sep 28, 2015 at 9:43
  • Maybe it is time to think to a macro too...
    – Hastur
    Commented Dec 17, 2015 at 13:28

1 Answer 1

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...

5
  • Thanks 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... :)
    – Hastur
    Commented Dec 19, 2015 at 16:24
  • Hmm - no, cell heigth / width are lost when re-opening the html in Calc.
    – tohuwawohu
    Commented Dec 19, 2015 at 16:30
  • Thx again. Next year I will search for the calc wishlists or I will surrend to do a macro...
    – Hastur
    Commented Dec 19, 2015 at 16:35
  • Just 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.
    – tohuwawohu
    Commented Dec 19, 2015 at 16:38
  • Thx. On Monday I will try with the original file... now I'm without computer.
    – Hastur
    Commented Dec 19, 2015 at 16:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .