Free Republic
Browse · Search
General/Chat
Topics · Post Article

For example, let's say I want to compare B38 and B139, to within a variation of +/- 10 units. If B38 = 1000, and B139 is anything from 991 to 1009, nothing happens. If, however, B38 is 1000 and B139 is, oh, say 889, or maybe it is 1010, then both values blink red.

How do I accomplish this? It seems a basic function, but all I could find on it lead to much more involved making of comparisons than the simple task I have in mind.

1 posted on 09/21/2024 9:52:15 PM PDT by Paul R.
[ Post Reply | Private Reply | View Replies ]


To: Paul R.

Thanks in advance!


2 posted on 09/21/2024 9:52:33 PM PDT by Paul R. (Bin Laden wanted Obama killed so the incompetent VP, Biden, would become President!)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Paul R.

Paul, you do know there is Stack Exchange and many other places that can help you, correct?


4 posted on 09/21/2024 9:56:13 PM PDT by ConservativeMind (Trump: Befuddling Democrats, Republicans, and the Media for the benefit of the US and all mankind.)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Paul R.
I'm not a LibreOffice user but the formula would be based on Absolute Value (ABS) so it will account for both higher or lower numbers.

In Excel, I would add Conditional Formatting to the cells to change the "Fill" or "Font Color".
Select "Conditional Formatting".
Select "Use a Formula to determine which cells to format".
Enter the formula as: =ABS(B139-B38)>10

5 posted on 09/21/2024 10:39:15 PM PDT by T.B. Yoits
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Paul R.

https://www.youtube.com/watch?v=976BGXgKSKU


6 posted on 09/22/2024 2:24:21 AM PDT by The Duke (Not without incident)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Paul R.
I don't use LibreOffice Calc but I do use ChatGPT to help me with Excel. I submitted your question and here's what ChatGPT said:
In LibreOffice Calc, you can use Conditional Formatting to achieve this effect. Here's how you can set it up:

Select the Cells: Highlight both cells B38 and B139.

Open Conditional Formatting:

Go to Format in the menu bar.

Click on Conditional Formatting and then select Condition.

Set Up the Condition:

In the Conditional Formatting dialog, set up the following conditions:

In the first dropdown, choose Formula is.

In the formula field, enter the following formula:

ABS($B$38 - $B$139) > 10

This formula checks if the absolute difference between B38 and B139 is greater than 10.

Set the Formatting Style:

Click on the New Style button.

In the style editor, go to the Font Effects tab.

Choose the Font color as Red.

Go to the Background tab and choose a red background if you want the cells to flash red as well.

Click OK to save the style.

Apply the Style:

Click OK again in the Conditional Formatting dialog to apply this style when the condition is met.

Blinking Effect (Optional):

To make the cells flash or blink, you will need to use a macro because Calc does not have a built-in blinking effect for cell formatting. This involves writing a script to periodically change the cell style, which is more complex.

Explanation:

The formula ABS($B$38 - $B$139) > 10 will check the absolute difference between cells B38 and B139. If the difference is greater than 10, the conditional format will be triggered, and both cells will change to red.

Additional Tip: If you want to apply this formatting to more cells or a range, you can adjust the cell references accordingly or apply the conditional formatting to a range of cells.

This approach should work for your requirement to highlight both cells when the difference exceeds a given threshold. For a blinking effect, a more advanced macro would be required, but for most purposes, a change in color should suffice.


7 posted on 09/22/2024 2:29:06 AM PDT by RoosterRedux (Thinking objectively is difficult. And painful. That’s why many people just cling to their biases.)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Paul R.

Is there a Spanish version of LibreOffice?

I am interested in word processing in Spanish for my class work and correspondence.


18 posted on 09/23/2024 6:32:56 AM PDT by ptsal (Vote R.E.D. >>>Remove Every Democrat ***)
[ Post Reply | Private Reply | To 1 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson