PC Review


Reply
Thread Tools Rate Thread

Conditional Formatting Based on Value of Adjacent Cell

 
 
f252863@hotmail.com
Guest
Posts: n/a
 
      20th Dec 2007
Hi,

I see the solution on the boards but it doesn't work for me.

Cells:

B1 =now()
B2 =weekday(b1)
C2 Conditional formatting =b2="Monday"

Cell B2 is custom formatted "dddd" so it shows the day.

If I type "Monday" into cell B2 it works but if I use "weekday(b1)" it
doesn't even though "Monday" is in the cell. How do I get conditional
formatting to recognize the value Monday as opposed to being confused
by the formula?
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      20th Dec 2007
It might look like Monday due to its format, bur Now() is a number. You
could use

TEXT(B1,"dddd")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



<(E-Mail Removed)> wrote in message
news:5e5c1e97-6730-48d1-819e-(E-Mail Removed)...
> Hi,
>
> I see the solution on the boards but it doesn't work for me.
>
> Cells:
>
> B1 =now()
> B2 =weekday(b1)
> C2 Conditional formatting =b2="Monday"
>
> Cell B2 is custom formatted "dddd" so it shows the day.
>
> If I type "Monday" into cell B2 it works but if I use "weekday(b1)" it
> doesn't even though "Monday" is in the cell. How do I get conditional
> formatting to recognize the value Monday as opposed to being confused
> by the formula?



 
Reply With Quote
 
Stephen
Guest
Posts: n/a
 
      20th Dec 2007
<(E-Mail Removed)> wrote in message
news:5e5c1e97-6730-48d1-819e-(E-Mail Removed)...
> Hi,
>
> I see the solution on the boards but it doesn't work for me.
>
> Cells:
>
> B1 =now()
> B2 =weekday(b1)
> C2 Conditional formatting =b2="Monday"
>
> Cell B2 is custom formatted "dddd" so it shows the day.
>
> If I type "Monday" into cell B2 it works but if I use "weekday(b1)" it
> doesn't even though "Monday" is in the cell. How do I get conditional
> formatting to recognize the value Monday as opposed to being confused
> by the formula?


Use this conditional format formula:
=B2=2

The WEEKDAY function returns a number between 1 and 7.
Therefore the underlying value in cell B2 is a number between 1 and 7.
Formatting doesn't change this value - it merely changes how it is
displayed.
Any formula using B2 uses the underlying value.


 
Reply With Quote
 
BoniM
Guest
Posts: n/a
 
      20th Dec 2007
The cell is formatted to display Monday, but the actual value in the cell is 2.
Change the conditional formatting to =b2=2.


"(E-Mail Removed)" wrote:

> Hi,
>
> I see the solution on the boards but it doesn't work for me.
>
> Cells:
>
> B1 =now()
> B2 =weekday(b1)
> C2 Conditional formatting =b2="Monday"
>
> Cell B2 is custom formatted "dddd" so it shows the day.
>
> If I type "Monday" into cell B2 it works but if I use "weekday(b1)" it
> doesn't even though "Monday" is in the cell. How do I get conditional
> formatting to recognize the value Monday as opposed to being confused
> by the formula?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting based on adjacent cell? Custard Tart Microsoft Excel Worksheet Functions 1 6th Nov 2009 01:53 PM
Conditional Formatting based on adjacent cell value Bill Meacham Microsoft Excel Misc 3 11th Dec 2007 08:38 PM
Conditional Formatting based on data in adjacent cell & restrict save without required data bjohnson Microsoft Excel Programming 1 28th Aug 2007 10:27 PM
Conditional formatting of adjacent cells based on text in cell elderain@gmail.com Microsoft Excel Programming 1 8th Aug 2006 12:20 AM
How to do a conditional formatting based on an adjacent cell =?Utf-8?B?Q29uZnVzZWQ=?= Microsoft Excel Misc 2 10th Jan 2005 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 AM.