LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Formula Result is different from the shown result

Your explanation could have been a lot clearer. Here's my guess.

You are calculating =year(a1) where a1 contains the date May 15/2007.
You are formatting that cell as a date (with the format "yyyy"), and getting
the result 1905.

Your problem is that a year is not a date. Your year is 2007, but when you
format this as "yyyy", Excel thinks it's a serial number representing the
date Jun 29/1905. So it dutifully responds with 1905.

Your choices a
1. Don't use =Year(...). Just format the date cell with "yyyy".
2. Use =Year(...), but format as a number

Regards,
Fred

"DanWebster24" wrote in message
...
In the Function Arguments dialog the official Formula Result is different
(and wrong) from the result shown after "=" just under the Serial number
field.
I am using the Year formula. Whatever formatting I use for the date
neither
this formula nor Text to Columns can return the correct year.
EG: Date is 15-05-07 or 39217, Forumula Result = 1905 but under serial
number field it shows the correct result of = 2007


 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
average hourly output for date, result shown by day Morgan New Users to Excel 5 November 6th 09 03:28 AM
different values shown when #DIV/0! error is returned as result Danko Jotanovic Excel Discussion (Misc queries) 3 September 4th 09 09:18 AM
why result 77.1 * 850 shown 100000 in excel 2007? nth Excel Discussion (Misc queries) 4 February 9th 08 07:14 PM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
Formula shown as a formula rather than it's result Tosca Excel Worksheet Functions 6 May 19th 05 03:39 AM


All times are GMT +1. The time now is 05:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"