PC Review


Reply
Thread Tools Rate Thread

Conditional formats for date Serial Numbers

 
 
Buro AP
Guest
Posts: n/a
 
      15th Feb 2009
Hi,

I want some cells to turn gray if the data contained therein is a date
number such as 39485. How do I create a condition that can determine that?
I was able to get it to work when the cell was filled with a text "Sat" or
"Sun", but now that I've managed to have the actual serial number display as
"Sat" and "Sun" the condition no longer applies because the returned value is
a number and not text.
--
Earn extra cash from your computer!
Visit http://24hourwebcash.com/curiale1234

God Bless,

Tony
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      15th Feb 2009
If the value in A1 is a date (a real number), then you could use this kind of
conditional formatting formula to check to see if it is Saturday or Sunday:

=WEEKDAY(A1,2)>5



Buro AP wrote:
>
> Hi,
>
> I want some cells to turn gray if the data contained therein is a date
> number such as 39485. How do I create a condition that can determine that?
> I was able to get it to work when the cell was filled with a text "Sat" or
> "Sun", but now that I've managed to have the actual serial number display as
> "Sat" and "Sun" the condition no longer applies because the returned value is
> a number and not text.
> --
> Earn extra cash from your computer!
> Visit http://24hourwebcash.com/curiale1234
>
> God Bless,
>
> Tony


--

Dave Peterson
 
Reply With Quote
 
Buro AP
Guest
Posts: n/a
 
      15th Feb 2009
Thanks Dave. Your formula returned TRUE. I read and experimented a little
more and came up with this:

=TEXT(B2,"ddd") Where B2 contains my reference date. The resultant text
was able to trigger the conditional cell formatting of gray for "Sat" or
"Sun". Subsequent cells add 1 to the previous cell value thus:

=TEXT((B2+1),"ddd"); =TEXT(C2+1),"ddd")

and this worked.

Thanks for the help!
--
Earn extra cash from your computer!
Visit http://24hourwebcash.com/curiale1234

God Bless,

Tony


"Dave Peterson" wrote:

> If the value in A1 is a date (a real number), then you could use this kind of
> conditional formatting formula to check to see if it is Saturday or Sunday:
>
> =WEEKDAY(A1,2)>5
>
>
>
> Buro AP wrote:
> >
> > Hi,
> >
> > I want some cells to turn gray if the data contained therein is a date
> > number such as 39485. How do I create a condition that can determine that?
> > I was able to get it to work when the cell was filled with a text "Sat" or
> > "Sun", but now that I've managed to have the actual serial number display as
> > "Sat" and "Sun" the condition no longer applies because the returned value is
> > a number and not text.
> > --
> > Earn extra cash from your computer!
> > Visit http://24hourwebcash.com/curiale1234
> >
> > God Bless,
> >
> > Tony

>
> --
>
> Dave Peterson
>

 
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 Formats Date Based lau Microsoft Excel Misc 1 30th Dec 2009 10:30 PM
generation of: qty to serial numbers, plus date irealtymods Microsoft Excel Programming 0 30th Jul 2009 12:43 PM
How to read NIC card serial numbers or MAC address , Hard Drive serial numbers in Java or Delphi or C/C++ or C#? Ryan Liu Microsoft C# .NET 0 28th Apr 2006 04:57 AM
date/serial numbers-help please 1a2s3d4f Microsoft Excel Discussion 1 31st Mar 2006 06:43 AM
Re: Changing date serial numbers to date format Bob Umlas Microsoft Excel Discussion 0 14th Apr 2005 12:58 PM


Features
 

Advertising
 

Newsgroups
 


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