Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Two cells whose contents look alike but aren't

I have an what appears to be a five digit integer in cell "A1" which has a
very strange property. If I type the same five digits into cell "A2" and
then in a cell "A3" type the function =if(Range("A1") =
Range("A2"),"Yes","no") the result is "no". If I then double click cell
"A1" (as if I wanted to edit) and hit the enter key, the function value
magically changes to "yes". The strange integer was copied from the zip code
field of an address file.

Can anyone please tell me what's going on?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Two cells whose contents look alike but aren't

The number in A1 is stored as text. When you edit the cell and hit enter,
you force Excel to change it to a real number.

--
Regards

Juan Pablo González

"josh" wrote in message
...
I have an what appears to be a five digit integer in cell "A1" which has

a
very strange property. If I type the same five digits into cell "A2" and
then in a cell "A3" type the function =if(Range("A1") =
Range("A2"),"Yes","no") the result is "no". If I then double click cell
"A1" (as if I wanted to edit) and hit the enter key, the function value
magically changes to "yes". The strange integer was copied from the zip

code
field of an address file.

Can anyone please tell me what's going on?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Two cells whose contents look alike but aren't

Many thanks, Juan, I understand the situation now.

"Juan Pablo González" wrote in message
...
The number in A1 is stored as text. When you edit the cell and hit enter,
you force Excel to change it to a real number.

--
Regards

Juan Pablo González

"josh" wrote in message
...
I have an what appears to be a five digit integer in cell "A1" which

has
a
very strange property. If I type the same five digits into cell "A2" and
then in a cell "A3" type the function =if(Range("A1") =
Range("A2"),"Yes","no") the result is "no". If I then double click

cell
"A1" (as if I wanted to edit) and hit the enter key, the function

value
magically changes to "yes". The strange integer was copied from the zip

code
field of an address file.

Can anyone please tell me what's going on?






Reply
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
concatenate contents of cells whose contents resemble cell referem cathyh Excel Worksheet Functions 3 May 23rd 09 12:16 PM
vlookup sound alike dk New Users to Excel 6 May 2nd 08 10:27 PM
Combining alike cells? HoganD87 Excel Discussion (Misc queries) 2 August 14th 07 10:28 PM
Excel DB alike? SEOJAPAN Excel Discussion (Misc queries) 3 April 12th 05 02:20 AM
copying cells with formulas, but to keep it alike in destination mike Excel Programming 4 February 23rd 04 02:15 PM


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

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

About Us

"It's about Microsoft Excel"