Hi. Can you help please?
I have a large s/sheet with many columns and rows. Two columns relate to this query.
In one column (G) I have a list of numbers which is where new numbers are entered as received; in another column (BA) I have a COUNT IF forumula that seaches Col G to look for duplicates; and if found this will show “Duplicate” in the relevant Col BA field. This works well and uses the formula =IF(COUNTIF($G$5:$G$9999;G5)>1;"Duplicate";"").
It would be helpful if the Col G field in which I type the next number, would change background colour to red if the new number entered was recognised as a duplicate from the text shown in Col BA.
Hope this makes sense. Thank you.
[Solved] Conditional Formatting
[Solved] Conditional Formatting
Last edited by Hagar Delest on Thu Oct 12, 2017 10:13 pm, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
Open Office 4.1.3
Windows 10
HP PC
Windows 10
HP PC
-
- Volunteer
- Posts: 255
- Joined: Tue Apr 18, 2017 8:23 am
- Location: Germany
Re: Conditional Formatting
For Cell G7 you could use Conditional Formatting like this (after hitting the return key the CF shows style red):
or
Style "red" can be created before or while managing the CF.
You easily can spread your CF all over column G. Select one cell which contains the a.m. CF, use Clone Formatting paintbrush, type in Name Box G5:G9999 and hit return key (now selection of G5 to G9999 is to see) and use Clone Formatting paintbrush.
Code: Select all
Formula is BA7="Duplicate"
Apply style red
Code: Select all
Formula is COUNTIF($G$5:$G$9999;G7)>1
Apply style red
You easily can spread your CF all over column G. Select one cell which contains the a.m. CF, use Clone Formatting paintbrush, type in Name Box G5:G9999 and hit return key (now selection of G5 to G9999 is to see) and use Clone Formatting paintbrush.
LibreOffice current versions 7 and OpenOffice 4.1.15
on LinuxMint 20 - 21 Mate, W10-64 pro
on LinuxMint 20 - 21 Mate, W10-64 pro
Re: Conditional Formatting
Thanks for your quick reply. I have followed your suggestions, but sadly it is not working. I am getting no changes showing at all; but I will keep trying. If I was allowed to attach a screen shot it would help I am sure; but this is restricted.
Any further suggestions would be appreciated.
I am sure it is something I am doing wrong.
Thanks.
Any further suggestions would be appreciated.
I am sure it is something I am doing wrong.
Thanks.
Open Office 4.1.3
Windows 10
HP PC
Windows 10
HP PC
Re: Conditional Formatting
Hello again.
Got it working now thank you. It was simply the CF choice of Cell Value or Formula.
I will now try to get the CF settings applied to all the 700 fields in Col G, using your suggestion of Clone Paintbrush......which I have yet to find!
Thanks.
Got it working now thank you. It was simply the CF choice of Cell Value or Formula.
I will now try to get the CF settings applied to all the 700 fields in Col G, using your suggestion of Clone Paintbrush......which I have yet to find!
Thanks.
Open Office 4.1.3
Windows 10
HP PC
Windows 10
HP PC
Re: Conditional Formatting
A final reply. Thank you 'erbsenzahl' for your help; all working as wanted.
I appreciate your help; thanks, Mike.
I appreciate your help; thanks, Mike.
Open Office 4.1.3
Windows 10
HP PC
Windows 10
HP PC