I'm sure this is a simple fix, but can't seem to get this to work.
Attachment is an extract of the entire spreadsheet.
I would like the text in columns D through F to be green if the contents of column A is a Y.
I tried using the IF formula, but can't get the name of the style into the THEN part of the formula.
Same problem if I use conditional formatting.
I don't want the text to change if column A is anything other than A.
Thanks,
[Solved] Format Cell Using A Style
[Solved] Format Cell Using A Style
- Attachments
-
- MBC Renewal for OOo forum.ods
- (13.28 KiB) Downloaded 155 times
Last edited by paulp575 on Mon Jan 31, 2011 9:54 pm, edited 3 times in total.
Paul
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
- JohnSUN-Pensioner
- Volunteer
- Posts: 876
- Joined: Fri Jan 14, 2011 1:21 pm
- Location: Kyiv, Ukraine
Re: Format Cell Using A Style
Maybe something like this? And apply this format to all cells ...
I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Re: Format Cell Using A Style
Sorry, that didn't work.JohnSUN-Pensioner wrote:Maybe something like this? And apply this format to all cells ...
So I tried this: Formula is $Master_List.$A6="Y" Cell style=ActiveText
That didn't work either.
I have formatted ActiveText to be LightGreen text.
Maybe a restatement of what I'm trying will help?
If the contents of the cell in column A is Y, I want columns D through F to be green text.
If the contents of the cell in column A is anything else, I want the columns D through F to remain the default text/font.
Thanks,
Paul
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
- JohnSUN-Pensioner
- Volunteer
- Posts: 876
- Joined: Fri Jan 14, 2011 1:21 pm
- Location: Kyiv, Ukraine
Re: Format Cell Using A Style
Are you apply the formula $Master_List.$A6="Y" to all cells in the sixth row? And what is the second condition?
I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Re: Format Cell Using A Style
I am not applying the formula to all the cells in row 6 - only columns D through F.JohnSUN-Pensioner wrote:Are you apply the formula $Master_List.$A6="Y" to all cells in the sixth row? And what is the second condition?
I don't want the spreadsheet littered with a lot of green text; only the names of those who are current (indicated by a Y in column A).
There is no second condition.
I only want the text in columns D through F change to green if column A is Y. If column A is Y, then do nothing to the text in columns D through F.
Does this make it clearer? Hope so!
Thanks,
Paul
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
- JohnSUN-Pensioner
- Volunteer
- Posts: 876
- Joined: Fri Jan 14, 2011 1:21 pm
- Location: Kyiv, Ukraine
Re: Format Cell Using A Style
I do this so...
- Attachments
-
- MBC Renewal vs LightGreenY.ods
- (13.31 KiB) Downloaded 162 times
I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Re: Format Cell Using A Style
That worked - well almost.JohnSUN-Pensioner wrote:I do this so...
My problem was I was telling the conditional formatting to use "Y" from column A when it should have been "A".
However, his suggestion only works for one row.
I need to do this for over 1,000 rows on this worksheet.
How would I change his expression so I can copy/paste to all rows of the worksheet?
It needs to be set up so when I change the contents of the cell in column A from I to A, the contents in columns D through F change automatically.
Paul
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
-----
OpenOffice.org v3.4.1 on WinXP Pro w/SP3
- JohnSUN-Pensioner
- Volunteer
- Posts: 876
- Joined: Fri Jan 14, 2011 1:21 pm
- Location: Kyiv, Ukraine
Re: [Solved] Format Cell Using A Style
OK, let's do it together...
Our task: when a letter "Y" in Column C - apply to the text in columns D:F style ActiveText with light green letters Step by step:
Select cell D4 - the first cell in formatting range. Choose Format - Conditional Formatting Address in the formula is $C4 - always column C and current (forth) row!
ОК.
Copy cell D4 to the clipboard. In the usual way: Ctrl+Insert or Ctrl+C or button "Copy" on the toolbar...
Press Ctrl+Shift+End - select range from current cell D4 to end of data. In "Name Box" (top left) you can see address of selected range - D4:F27. Change it by typing some zeros at end (D4:F2700 or D4:F27000 or D4:F270000) and press Enter. Selection will be resize.
Now right click and select Paste Special from the menu. Of all the options of Paste Special - only the format needed... ОК.
In the condition of formatting everywhere will be column C and different rows
That's all, folks!
Our task: when a letter "Y" in Column C - apply to the text in columns D:F style ActiveText with light green letters Step by step:
Select cell D4 - the first cell in formatting range. Choose Format - Conditional Formatting Address in the formula is $C4 - always column C and current (forth) row!
ОК.
Copy cell D4 to the clipboard. In the usual way: Ctrl+Insert or Ctrl+C or button "Copy" on the toolbar...
Press Ctrl+Shift+End - select range from current cell D4 to end of data. In "Name Box" (top left) you can see address of selected range - D4:F27. Change it by typing some zeros at end (D4:F2700 or D4:F27000 or D4:F270000) and press Enter. Selection will be resize.
Now right click and select Paste Special from the menu. Of all the options of Paste Special - only the format needed... ОК.
In the condition of formatting everywhere will be column C and different rows
That's all, folks!
I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English