LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Expression Difference?


Hello,

I was wondering how come these two expression have different results


Code:
--------------------

12 - (previousSickMonth - employmentMonth + tempMonth)

--------------------



Code:
--------------------

12 - previousSickMonth - employmentMonth + tempMonth

--------------------


The first one gives me the correct answer that I want. But it doesn't
make sense to me how come there would be a difference. All the
operators are just subtraction and addition, and it shouldn't be based
on any form of precedence.

Is there some kind of VBA difference from other programming languages I
am missing here?


--
FCC
------------------------------------------------------------------------
FCC's Profile: http://www.excelforum.com/member.php...o&userid=35888
View this thread: http://www.excelforum.com/showthread...hreadid=557981

 
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
i have expression - E$5 what is the difference from E5? Dmitrii Excel Discussion (Misc queries) 4 May 13th 23 07:46 PM
value expression RayB Excel Worksheet Functions 7 January 17th 07 09:57 PM
need help with expression Peterpunkin Excel Discussion (Misc queries) 5 May 4th 06 05:56 PM
Expression gudway New Users to Excel 3 May 4th 06 01:12 PM
charting a difference of 2 columns' w/o adding a difference column Wab Charts and Charting in Excel 4 July 27th 05 02:37 AM


All times are GMT +1. The time now is 05:54 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"