Conditional Formatting - Replace with text

Discuss the spreadsheet application
Post Reply
greenmonkey79
Posts: 6
Joined: Tue Mar 19, 2013 11:52 pm

Conditional Formatting - Replace with text

Post by greenmonkey79 »

This questions sort of follows on from my previous query here:-

http://forum.openoffice.org/en/forum/vi ... =9&t=60544

What I would like to do is use conditional formatting to find a certain cell/ number etc and then instead of highlighting the cell replace the number in the cell with a word/ text say 'STAR' for example.
OpenOffice.org 3.4.1 on Windows 7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Conditional Formatting - Replace with text

Post by acknak »

Make the conditional format apply a style that has the user-defined format code: "STAR"

The value stored in the cell will still be there, but it will display as: STAR
AOO4/LO5 • Linux • Fedora 23
greenmonkey79
Posts: 6
Joined: Tue Mar 19, 2013 11:52 pm

Re: Conditional Formatting - Replace with text

Post by greenmonkey79 »

acknak wrote:Make the conditional format apply a style that has the user-defined format code: "STAR"

The value stored in the cell will still be there, but it will display as: STAR
How do I do that? I can't seem to get words to appear in the cells just something like 0TA5660.
OpenOffice.org 3.4.1 on Windows 7
thinman3
Volunteer
Posts: 382
Joined: Sat Jul 11, 2009 8:53 pm

Re: Conditional Formatting - Replace with text

Post by thinman3 »

You have to create a STYLE first. On the Menu Bar, click FORMAT > Styles & Formatting . You'll see -3- icons in the upper right corner of the window. Click on the middle one. Enter a STYLE name ; STAR . Click the OK button. The previous window will pop up and the STAR style should be listed. Right click on it and choose MODIFY. Click on the "Numbers" tab and then in the "Category" box, click on "User Defined". At the bottom of the window, there is a input field with Format Code above it. In the field, type in "STAR" or "Star" . Click the OK button.

When you assign a Conditional Format to a cell(s) and you want to use the STAR style, in the "Cell Style" field, click on the DOWN arrow and in the list that pops up, click on STAR. For the "trigger" condition, you could use "Cell Value is" , "Equal to" , 6 ; when the value 6 ( or any designated number ) is found , the word STAR will now appear.

thinman3
3.4.1 & 4.1.5 on MS Windows 7 Pro x64
User avatar
Villeroy
Volunteer
Posts: 31366
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Conditional Formatting - Replace with text

Post by Villeroy »

It's the literal "STAR" including the double-quotes.

The number won't be replaced. The actual cell value is still that hidden number. Formatting never changes any value.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
greenmonkey79
Posts: 6
Joined: Tue Mar 19, 2013 11:52 pm

Re: Conditional Formatting - Replace with text

Post by greenmonkey79 »

Villeroy wrote:It's the literal "STAR" including the double-quotes.

The number won't be replaced. The actual cell value is still that hidden number. Formatting never changes any value.
This works. Not to bothered about ht enumber being there, I can replace that manually, I just need a quick reference to know where certain numbers and/ or totals are and this does the job prefectly.
OpenOffice.org 3.4.1 on Windows 7
Post Reply