Hi Bill,
With the current date in F11,
=DATE(YEAR(F11),1,1)
returns the first day of the current year.
Your formula would (today) use 5 for the day.
--
Kind regards,
Niek Otten
Microsoft MVP - Excel
| Thanks Neik. I was working on the assumption that if =Year(A1) returned
| 2007, =DAY(A1) would return Monday. Who said computers are consistent?
| There is consistency, however, in adopting your suggestion and formatting
| the cell to return the correct output!
|
| Here's another one for if you don't mind. The formula -
| =DATE(YEAR(F11),MONTH(F11),1)
| returns, correctly, the first day of the current month
|
| So why doesn't-
| =DATE(YEAR(F11),1,MONTH(F11))
| return the first day of the current year?
|
| Thanks..
|
| Bill Ridgeway
|
| | > Hi Bill,
| >
| > Don't use the DAY() function; it returns 7, which is interpreted as
| > 7-1-1900, which is a Saturday.
| > Use =B4 instead and format custom as dddd
| >
| > --
| > Kind regards,
| >
| > Niek Otten
| > Microsoft MVP - Excel
| >
| > | > | In B4 & B5 I have the formula -
| > | =TODAY()
| > | which, correctly, returns 07/05/2007
| > |
| > | In C4 I have the formula -
| > | =DAY(B4)
| > | which, incorrectly, returns Saturday (it is Monday)
| > |
| > | What have I done wrong here please?
| > |
| > | Thanks.
| > |
| > | Bill Ridgeway
| > |
| > |
| >
| >
|
|