Conditional Formatting - unique cell ranges

I want to apply a conditional format (colour scale) to cells in my spreadsheet.

In each row I want to highlight high/low/medium values - in the context of that row only, not all the rows with conditional formatting.

When I do this at first it works, like this. Each row has it’s own condition statement, like this

Conditional formating example - before.ods (16.3 KB)

But when I close the document and reopen it the condition applies across all the rows I have formatted. There is one condition statement applied to all the rows, like this

Conditional formating example - after.ods (16.9 KB)

I cannot reproduce. I did the same procedure. The resulting … - after.ods is 1 KB larger, but shows identical colouring.

I am on LO 25.8.2.2, Win 64

1 Like

I reformatted both files, everything is normal, all 4 formats were maintained. (Windows 10 + LibO.25.8.4.2).
And the files are the same size.

2 Likes

Thanks. That’s weird. I’ve tried this loads of times and get same each time
v. 25.8.2.2 Windows 11

The attached files in my OP are extracts from a much bigger spreadsheet. When I reopen the ‘before’ spreadsheet extract it looks correct. So what could be causing the problem with the larger original?

I have tried copying and pasting the raw values from the original spreadsheet into a new workbook. Then applying the row by row conditional formatting. After saving and re-opening the correct conditional formatting is retained. So there is something in the original that is causing the glitch. It’s a big workbook. I don’t want to have to start from scratch!

Hi @John9991, try this: remove the formatting, save the file, close and reopen it, and reapply the formatting.

Thanks schiavinatto
I have tried this. Same result!

I have created a new sheet in the workbook and entered fresh, made-up values. I get the same result. There must be a problem with the workbook. So I either have to put up with conditional formatting not working (I can live with this but it’s far from ideal) or start from scratch I think

Maybe this is related to Bug 95295 - Calc is fragmenting ranges for conditional formats without need.

3 Likes

Thanks @mariosv
beyond my expertise this one!