I need a formula for a conditional formatting in .ods file. I want to highlight…
- User
I need a formula for a conditional formatting in .ods file. I want to highlight duplicate values but only if the cell to the left of these values is empty.
Assistant
For LibreOffice Calc (.ods files), you can use this conditional formatting formula:
codeAND(ISBLANK(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN())),0,-1)), COUNTIF(INDIRECT(ADDRESS(1,COLUMN())&":"&ADDRESS(1000,COLUMN())),INDIRECT(ADDRESS(ROW(),COLUMN())))>1)This formula works for any column. Here's a simpler version if you're applying it to a specific column (let's say column B):
codeAND(ISBLANK($A2), COUNTIF($B:$B, $B2)>1)To apply this:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.