Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

Question about dates/times

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brendan - 07 Nov 2007 02:34 GMT
Is there an efficient way to format columns for the date, time, and day of
week, and then reference that data in statements, for example using an if
statement assume a certian value for each month/day of week/time of day?
Bob Phillips - 07 Nov 2007 03:22 GMT
That is a very ambiguous question.

Firstly, it is simple to format a column, just select the column, and use
Format>Cells>Date and Time and choose a format.

But what does '... an if statement assume a certain value for each month/day
of week/time of day...' mean?

Signature

---
HTH

Bob

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

> Is there an efficient way to format columns for the date, time, and day of
> week, and then reference that data in statements, for example using an if
> statement assume a certian value for each month/day of week/time of day?
JE McGimpsey - 07 Nov 2007 03:23 GMT
First - the way a cell is formatted doesn't affect the underlying value,
which is what other cells will use in calculations. So how the IF()
statement interprets the value doesn't depend at all on how the cell is
formatted.

One way:

A1:     <date>

Format as   "dddd dd mmm yyyy hh:mm:ss"

What "certain value" do you want to assume?

You can use

   =MONTH(A1)
   =WEEKDAY(A1)
 
or for time,

   =MOD(A1,1)

> Is there an efficient way to format columns for the date, time, and day of
> week, and then reference that data in statements, for example using an if
> statement assume a certian value for each month/day of week/time of day?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.