ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Code for Conditional format (https://www.excelbanter.com/excel-discussion-misc-queries/53258-code-conditional-format.html)

TUNGANA KURMA RAJU

Code for Conditional format
 
A cell value is"MEDIUM & LARGE" or "LARGE & MEDIUM".Iwould like apply
conditional format for these two words two different colors,that means MEDIUM
word should have one color and LARGE word should have other color."&" string
with common color.Any give a Vb code

ScottO

Code for Conditional format
 
Is there anything stopping you from splitting the 2 results into 2
adjacent columns? If that was OK, then you could use CF easily.
Rgds,
ScottO
"TUNGANA KURMA RAJU"
wrote in message
...
| A cell value is"MEDIUM & LARGE" or "LARGE & MEDIUM".Iwould like
apply
| conditional format for these two words two different colors,that
means MEDIUM
| word should have one color and LARGE word should have other
color."&" string
| with common color.Any give a Vb code



TUNGANA KURMA RAJU

Code for Conditional format
 
The results are based on a single formula ,thats why I can't split the
results.I have
asked Vb code,because I can't add one more column to my report even though
the results can be split using a formula.
"ScottO" wrote:

Is there anything stopping you from splitting the 2 results into 2
adjacent columns? If that was OK, then you could use CF easily.
Rgds,
ScottO
"TUNGANA KURMA RAJU"
wrote in message
...
| A cell value is"MEDIUM & LARGE" or "LARGE & MEDIUM".Iwould like
apply
| conditional format for these two words two different colors,that
means MEDIUM
| word should have one color and LARGE word should have other
color."&" string
| with common color.Any give a Vb code




Dave Peterson

Code for Conditional format
 
Format|conditional formatting doesn't work that way. It's the whole cell that
gets formatted.



TUNGANA KURMA RAJU wrote:

A cell value is"MEDIUM & LARGE" or "LARGE & MEDIUM".Iwould like apply
conditional format for these two words two different colors,that means MEDIUM
word should have one color and LARGE word should have other color."&" string
with common color.Any give a Vb code


--

Dave Peterson

Roger Govier

Code for Conditional format
 
Hi

Just an observation.
I have noticed in many of your posts, including one or two I have answered
you say you cannot add another column (to your report).

I can't imagine that you are using the full 256 columns of the sheet, so
adding a column shouldn't be a problem.
If is a question of fitting a report to A4 paper, then hiding some columns
would work, or you could make use of additional helper columns either to the
left or the right of the range of columns that you choose to use as your
report either on screen or in printed format.

Just a thought as I have thought once or twice that you are making life
difficult for yourself.


Regards

Roger Govier


TUNGANA KURMA RAJU wrote:
The results are based on a single formula ,thats why I can't split the
results.I have
asked Vb code,because I can't add one more column to my report even though
the results can be split using a formula.
"ScottO" wrote:


Is there anything stopping you from splitting the 2 results into 2
adjacent columns? If that was OK, then you could use CF easily.
Rgds,
ScottO
"TUNGANA KURMA RAJU"
wrote in message
...
| A cell value is"MEDIUM & LARGE" or "LARGE & MEDIUM".Iwould like
apply
| conditional format for these two words two different colors,that
means MEDIUM
| word should have one color and LARGE word should have other
color."&" string
| with common color.Any give a Vb code





All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com