Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ajit Munj
 
Posts: n/a
Default 2 Conditional formats and insert comment - ajit

1. I want to format the cell by 2 conditions. e.g. in range a1:z1, fill the
cell with
red colour(Fill colour) only if it is blank and if it contains "Sunday",
show it with red colour (Font Colour). HOw can I do this?
2. I want to insert the comment conditionally e.g. if the cell contains
"IT" insert the comment "India Today", "TOI" insert comment as "Times of
India" etc. How Can I
perform this operation?

Ajit
--
Knowldege is Power
  #2   Report Post  
Mangesh Yadav
 
Posts: n/a
Default


1. I want to format the cell by 2 conditions. e.g. in range a1:z1, fill

the
cell with
red colour(Fill colour) only if it is blank and if it contains "Sunday",
show it with red colour (Font Colour). HOw can I do this?


Select the entire range A1:Z1. Go to Format Conditional Formatting. select
for cell value is "equal to" and enter "" (which means blank). Click on
Format button, Paterns tab, and select red color. Click Ok.

Now, click on Add, and repeat the above process. This time instead of "",
enter "Sunday", format button, font tab, and select red. Ok.


2. I want to insert the comment conditionally e.g. if the cell contains
"IT" insert the comment "India Today", "TOI" insert comment as "Times of
India" etc. How Can I
perform this operation?


for this, you would require a macro.

Mangesh



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

How can it be blank and be Sunday?

To test for Sunday, use a formula of

=WEEKDAY(A1)=1

--
HTH

Bob Phillips

"Ajit Munj" wrote in message
...
1. I want to format the cell by 2 conditions. e.g. in range a1:z1, fill

the
cell with
red colour(Fill colour) only if it is blank and if it contains "Sunday",
show it with red colour (Font Colour). HOw can I do this?
2. I want to insert the comment conditionally e.g. if the cell contains
"IT" insert the comment "India Today", "TOI" insert comment as "Times of
India" etc. How Can I
perform this operation?

Ajit
--
Knowldege is Power



  #4   Report Post  
KarenF
 
Posts: n/a
Default

I have the same problem. I want blank cells to be flagged with as red.
However, I did as you suggested and it did not work. I have verified the
cell is truly empty. Is there some special trick to keying the double
quotes? I've tried " ", "", ="", 4 single quotes, all to no avail.

"Mangesh Yadav" wrote:


1. I want to format the cell by 2 conditions. e.g. in range a1:z1, fill

the
cell with
red colour(Fill colour) only if it is blank and if it contains "Sunday",
show it with red colour (Font Colour). HOw can I do this?


Select the entire range A1:Z1. Go to Format Conditional Formatting. select
for cell value is "equal to" and enter "" (which means blank). Click on
Format button, Paterns tab, and select red color. Click Ok.

Now, click on Add, and repeat the above process. This time instead of "",
enter "Sunday", format button, font tab, and select red. Ok.


2. I want to insert the comment conditionally e.g. if the cell contains
"IT" insert the comment "India Today", "TOI" insert comment as "Times of
India" etc. How Can I
perform this operation?


for this, you would require a macro.

Mangesh




  #5   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Hi KarenF

I have tested the solution and it works fine. But you have to take care and
go back and see the conditions again especially when you use text (strings)
where you need to enter double quotes ("). When you enter your condition the
first time, say for testing a blank, you would enter "". This changes to
"""""" or something like this. You need to go back and change it to "".
Similarly for "Sunday", just check if it displays this with 2 " only.

So just go back to the conditional format and check if your blank is ="", if
not, make it that way.

Mangesh



"KarenF" wrote in message
...
I have the same problem. I want blank cells to be flagged with as red.
However, I did as you suggested and it did not work. I have verified the
cell is truly empty. Is there some special trick to keying the double
quotes? I've tried " ", "", ="", 4 single quotes, all to no avail.

"Mangesh Yadav" wrote:


1. I want to format the cell by 2 conditions. e.g. in range a1:z1,

fill
the
cell with
red colour(Fill colour) only if it is blank and if it contains

"Sunday",
show it with red colour (Font Colour). HOw can I do this?


Select the entire range A1:Z1. Go to Format Conditional Formatting.

select
for cell value is "equal to" and enter "" (which means blank). Click on
Format button, Paterns tab, and select red color. Click Ok.

Now, click on Add, and repeat the above process. This time instead of

"",
enter "Sunday", format button, font tab, and select red. Ok.


2. I want to insert the comment conditionally e.g. if the cell

contains
"IT" insert the comment "India Today", "TOI" insert comment as "Times

of
India" etc. How Can I
perform this operation?


for this, you would require a macro.

Mangesh








  #6   Report Post  
KarenF
 
Posts: n/a
Default

That did the trick! Thank you Mangesh...

"Mangesh Yadav" wrote:

Hi KarenF

I have tested the solution and it works fine. But you have to take care and
go back and see the conditions again especially when you use text (strings)
where you need to enter double quotes ("). When you enter your condition the
first time, say for testing a blank, you would enter "". This changes to
"""""" or something like this. You need to go back and change it to "".
Similarly for "Sunday", just check if it displays this with 2 " only.

So just go back to the conditional format and check if your blank is ="", if
not, make it that way.

Mangesh



"KarenF" wrote in message
...
I have the same problem. I want blank cells to be flagged with as red.
However, I did as you suggested and it did not work. I have verified the
cell is truly empty. Is there some special trick to keying the double
quotes? I've tried " ", "", ="", 4 single quotes, all to no avail.

"Mangesh Yadav" wrote:


1. I want to format the cell by 2 conditions. e.g. in range a1:z1,

fill
the
cell with
red colour(Fill colour) only if it is blank and if it contains

"Sunday",
show it with red colour (Font Colour). HOw can I do this?

Select the entire range A1:Z1. Go to Format Conditional Formatting.

select
for cell value is "equal to" and enter "" (which means blank). Click on
Format button, Paterns tab, and select red color. Click Ok.

Now, click on Add, and repeat the above process. This time instead of

"",
enter "Sunday", format button, font tab, and select red. Ok.


2. I want to insert the comment conditionally e.g. if the cell

contains
"IT" insert the comment "India Today", "TOI" insert comment as "Times

of
India" etc. How Can I
perform this operation?

for this, you would require a macro.

Mangesh







  #7   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Hi KarenF,

Thanks for the feedback.

Mangesh



"KarenF" wrote in message
...
That did the trick! Thank you Mangesh...

"Mangesh Yadav" wrote:

Hi KarenF

I have tested the solution and it works fine. But you have to take care

and
go back and see the conditions again especially when you use text

(strings)
where you need to enter double quotes ("). When you enter your condition

the
first time, say for testing a blank, you would enter "". This changes to
"""""" or something like this. You need to go back and change it to "".
Similarly for "Sunday", just check if it displays this with 2 " only.

So just go back to the conditional format and check if your blank is

="", if
not, make it that way.

Mangesh



"KarenF" wrote in message
...
I have the same problem. I want blank cells to be flagged with as

red.
However, I did as you suggested and it did not work. I have verified

the
cell is truly empty. Is there some special trick to keying the double
quotes? I've tried " ", "", ="", 4 single quotes, all to no avail.

"Mangesh Yadav" wrote:


1. I want to format the cell by 2 conditions. e.g. in range

a1:z1,
fill
the
cell with
red colour(Fill colour) only if it is blank and if it contains

"Sunday",
show it with red colour (Font Colour). HOw can I do this?

Select the entire range A1:Z1. Go to Format Conditional

Formatting.
select
for cell value is "equal to" and enter "" (which means blank). Click

on
Format button, Paterns tab, and select red color. Click Ok.

Now, click on Add, and repeat the above process. This time instead

of
"",
enter "Sunday", format button, font tab, and select red. Ok.


2. I want to insert the comment conditionally e.g. if the cell

contains
"IT" insert the comment "India Today", "TOI" insert comment as

"Times
of
India" etc. How Can I
perform this operation?

for this, you would require a macro.

Mangesh









  #8   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If you use formula is instead you won't have that problem

--
Regards,

Peo Sjoblom

(No private emails please)



--
Regards,

Peo Sjoblom

(No private emails please)


"KarenF" wrote in message
...
That did the trick! Thank you Mangesh...

"Mangesh Yadav" wrote:

Hi KarenF

I have tested the solution and it works fine. But you have to take care
and
go back and see the conditions again especially when you use text
(strings)
where you need to enter double quotes ("). When you enter your condition
the
first time, say for testing a blank, you would enter "". This changes to
"""""" or something like this. You need to go back and change it to "".
Similarly for "Sunday", just check if it displays this with 2 " only.

So just go back to the conditional format and check if your blank is ="",
if
not, make it that way.

Mangesh



"KarenF" wrote in message
...
I have the same problem. I want blank cells to be flagged with as red.
However, I did as you suggested and it did not work. I have verified
the
cell is truly empty. Is there some special trick to keying the double
quotes? I've tried " ", "", ="", 4 single quotes, all to no avail.

"Mangesh Yadav" wrote:


1. I want to format the cell by 2 conditions. e.g. in range a1:z1,

fill
the
cell with
red colour(Fill colour) only if it is blank and if it contains

"Sunday",
show it with red colour (Font Colour). HOw can I do this?

Select the entire range A1:Z1. Go to Format Conditional Formatting.

select
for cell value is "equal to" and enter "" (which means blank). Click
on
Format button, Paterns tab, and select red color. Click Ok.

Now, click on Add, and repeat the above process. This time instead of

"",
enter "Sunday", format button, font tab, and select red. Ok.


2. I want to insert the comment conditionally e.g. if the cell

contains
"IT" insert the comment "India Today", "TOI" insert comment as
"Times

of
India" etc. How Can I
perform this operation?

for this, you would require a macro.

Mangesh








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"