[Solved] Conditional format cell

Discuss the spreadsheet application
Post Reply
AndrewRi
Posts: 5
Joined: Fri Aug 09, 2019 10:56 pm

[Solved] Conditional format cell

Post by AndrewRi »

I tried searching the forum and could not find a solution that works for me. I would like to highlight a cell that contains the max value in that row from a list of nonadjacent cells. I'm using OpenOfice 4.1.6 on Windows 7.
Last edited by Hagar Delest on Wed Aug 14, 2019 11:42 am, edited 2 times in total.
Reason: tagged solved
OpenOffice 4.1.6 on Windows 7
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Conditional format cell

Post by RusselB »

Use the Conditional Formatting set for "Formula is" and set the formula to be the MAX function with the list of non-adjacent cells being the parameters of the MAX function.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
AndrewRi
Posts: 5
Joined: Fri Aug 09, 2019 10:56 pm

Re: Conditional format cell

Post by AndrewRi »

Thanks. I thought I was doing that, but I'm not getting any results. Here is what I tried following formula is MAX($BE221, $BK221,$BQ221,$BW221,$CC221) Any more help is appreciated!
OpenOffice 4.1.6 on Windows 7
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Conditional format cell

Post by RusselB »

Replace the commas with semi-colons.
OpenOffice uses semi-colons as parameter separators
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
User avatar
Lupp
Volunteer
Posts: 3553
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Conditional format cell

Post by Lupp »

If the formula only returns the value found to be the maximum, the mode of CF must be 'Value is' with 'equal to'. The given example

Code: Select all

MAX($BE221; $BK221;$BQ221;$BW221;$CC221)
is of that type.
With 'Formula is' (which is worded somehow misleading) the formula result is always evaluated as a logical (Boolean) result. The condition is then regarded TRUE if the numeric result is <>0 (different from zero) and FALSE only if the result is 0 (zero).
Having set it this way, the cell style to be overlaid under the condition would always apply if the maximum value found is different from 0. It would not be compared to the content/result in the conditionally formatted cell(s).
To get it as needed with 'Formula is', the base cell of CF, say A221, would need to be compared to the found maximum in the formula cell like in

Code: Select all

$A221=MAX($BE221; $BK221;$BQ221;$BW221;$CC221)
(Also to the OP: There is no version 4.6.1 of Apache OpenOffice. Please check your signature.)
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
AndrewRi
Posts: 5
Joined: Fri Aug 09, 2019 10:56 pm

Re: Conditional format cell

Post by AndrewRi »

Thanks for feedback on my question and correcting my dyslexic signature. My final solution looked like this $BE221:$CC221=MAX($BE221; $BK221;$BQ221;BW221;$CC221)
OpenOffice 4.1.6 on Windows 7
Post Reply