How to copy a column with conditional format by "value" - Libreoffice 4.1

14,074

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

Share:
14,074

Related videos on Youtube

Hastur
Author by

Hastur

Updated on September 18, 2022

Comments

  • Hastur
    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 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

    • Hastur
      Hastur about 8 years
      It should be nice to know the reason of the down vote to improve the question.
    • Hastur
      Hastur almost 8 years
      Maybe it is time to think to a macro too...
  • Hastur
    Hastur almost 8 years
    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... :)
  • cyberha4
    cyberha4 almost 8 years
    Hmm - no, cell heigth / width are lost when re-opening the html in Calc.
  • Hastur
    Hastur almost 8 years
    Thx again. Next year I will search for the calc wishlists or I will surrend to do a macro...
  • cyberha4
    cyberha4 almost 8 years
    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.
  • Hastur
    Hastur almost 8 years
    Thx. On Monday I will try with the original file... now I'm without computer.