#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default Day formula

What's going on with the Day formula for 2010? I am working in Excel 2003
and the formula that I always use to pull the day of the week isn't working.
I thought it might be my spreadsheet but I tried it in a blank one and got
the same thing.

Cell E3 has date 01/28/2010 formatted as a date. Cell G3 references cell E3
with this formula =DAY(E3) and it is formatted as custom DDDD - so that I see
the day of the week. January 28, 2010 is a THursday and it returns a
Saturday. When I format as a date only I get January 28th 1900. What am I
doing wrong. It is not set to 1904 date system (when I do that I get 2014).
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Day formula

JICDB wrote:
What's going on with the Day formula for 2010? I am working in Excel 2003
and the formula that I always use to pull the day of the week isn't working.
I thought it might be my spreadsheet but I tried it in a blank one and got
the same thing.

Cell E3 has date 01/28/2010 formatted as a date. Cell G3 references cell E3
with this formula =DAY(E3) and it is formatted as custom DDDD - so that I see
the day of the week. January 28, 2010 is a THursday and it returns a
Saturday. When I format as a date only I get January 28th 1900. What am I
doing wrong. It is not set to 1904 date system (when I do that I get 2014).



If you just want the day of the week spelled out, format the cell as DDDD and
enter the whole date.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Day formula

=DAY() has never returned the day of the week. It returns the day of the
month. If you are struggling to understand what an Excel function does,
type its name into Excel help (unless the function is DATEDIF). In this
case, type DAY into Excel help.
--
David Biddulph

"JICDB" wrote in message
...
What's going on with the Day formula for 2010? I am working in Excel 2003
and the formula that I always use to pull the day of the week isn't
working.
I thought it might be my spreadsheet but I tried it in a blank one and got
the same thing.

Cell E3 has date 01/28/2010 formatted as a date. Cell G3 references cell
E3
with this formula =DAY(E3) and it is formatted as custom DDDD - so that I
see
the day of the week. January 28, 2010 is a THursday and it returns a
Saturday. When I format as a date only I get January 28th 1900. What am
I
doing wrong. It is not set to 1904 date system (when I do that I get
2014).



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Day formula

The day number 28 returned from the date 1/28/2010 is being evaluated as the
date serial number 28 which when formatted as date is Jan 28 1900 which is a
Saturday.

Excel store dates as interger offsets from a base date. Using the default
date system that base date is Jan 1 1900. Jan 1 1900 has the numeric value
of 1. Jan 2 1900 has the numeric value of 2, Jan 3 1900 has the numeric
value of 3, etc., etc. Jan 28 2010 has the numeric value of 40206. It's the
40206th day since the base date of Jan 1 1900.

You can see the true numeric value of a date by formatting the cell that
contains the date as General or Number.

So, to get the weekday for a date you can try this:

=TEXT(E3,"ddd")

--
Biff
Microsoft Excel MVP


"JICDB" wrote in message
...
What's going on with the Day formula for 2010? I am working in Excel 2003
and the formula that I always use to pull the day of the week isn't
working.
I thought it might be my spreadsheet but I tried it in a blank one and got
the same thing.

Cell E3 has date 01/28/2010 formatted as a date. Cell G3 references cell
E3
with this formula =DAY(E3) and it is formatted as custom DDDD - so that I
see
the day of the week. January 28, 2010 is a THursday and it returns a
Saturday. When I format as a date only I get January 28th 1900. What am
I
doing wrong. It is not set to 1904 date system (when I do that I get
2014).



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Day formula

Hi,

I think what you want is
=Weekday(E3)
formatted as DDDD returns Thursday

Day(E3) would simply return 28
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"JICDB" wrote:

What's going on with the Day formula for 2010? I am working in Excel 2003
and the formula that I always use to pull the day of the week isn't working.
I thought it might be my spreadsheet but I tried it in a blank one and got
the same thing.

Cell E3 has date 01/28/2010 formatted as a date. Cell G3 references cell E3
with this formula =DAY(E3) and it is formatted as custom DDDD - so that I see
the day of the week. January 28, 2010 is a THursday and it returns a
Saturday. When I format as a date only I get January 28th 1900. What am I
doing wrong. It is not set to 1904 date system (when I do that I get 2014).

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:36 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"