A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula Result is different from the shown result



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 12:51 PM posted to microsoft.public.excel.worksheet.functions
DanWebster24
external usenet poster
 
Posts: 1
Default Formula Result is different from the shown result

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
  #2  
Old March 18th, 2010, 01:06 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Formula Result is different from the shown result

Dan,

This question; at least to me, isn't clear. What are you entering and where
and what is the formula you are referring to?

If you enter something like
=YEAR(15-05-07)
Excel will evaluate that as 15-5-7=3 and come up with a year of 1900




--
Mike

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


"DanWebster24" wrote:

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

  #3  
Old March 18th, 2010, 04:03 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
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
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.