LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 85
Default When is text treated as number?

I entered '1234 (note the apostrophe) into A1 and the formula
=(A1=2000) into A2. I was surprised that A2 results in TRUE.

Why is that?

If I enter the formula =A1+A1 into A3, it results in the number 2468.

So it seems that the text in A1 is being interpreted as a number, at
least sometimes.

Even if that is not the case in A2 (why not?), how is A1 being
interpreted such that the conditional expression returns TRUE?

To rule out human error, if I replace A1 with 1234 (no apostrophe), A2
results in FALSE, as expected.

PS: I am not looking for work-arounds. I know several myself. I am
merely asking why A2 results in TRUE. It's a curiosity.
 
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
Some of my SSN's are being treated as formulas Gina K Excel Discussion (Misc queries) 12 October 12th 07 08:19 PM
vlookup formula editing based on numbers treated as text JASelep Excel Worksheet Functions 1 August 30th 07 04:48 PM
Text treated as a numeric value? betany70 Excel Discussion (Misc queries) 4 July 23rd 07 07:42 PM
Text value 0e00 still treated as a number? Frag Excel Discussion (Misc queries) 5 January 10th 07 05:58 PM
Formula Being treated as Text BBB Excel Worksheet Functions 2 September 20th 05 05:38 PM


All times are GMT +1. The time now is 05:11 PM.

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"