CMIIandExcel
Board Regular
- Joined
- Sep 4, 2009
- Messages
- 190
Hi all
I am a bit mythed by an issue I am having in Excel 2010.
I have two different characters displaying as - and ? but are both returning 63 from CODE().
I know the - should return 45.
Anyone got any ideas how this can be happening?
Thanks in advance for any assistance
Mike
Background:
Somone was copy and pasting values from an excel workbook into a database search and the db was not returning any hits. when the - in the search criteria were removed and replaced with wildcards the search returned hits.
They then sent the number to me via office communicator (Copied and pasted below)
CRL1‐XRL‐Z3‐ADDSD‐CR001‐50147
Where it no longer displayed as a - but as a non printable character (empty square).
I then copied this back into excel and it again displayed as -.
I then used CODE() and CHAR() to try and see what was what.
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Character[/TD]
[TD]CODE()[/TD]
[/TR]
[TR]
[TD]-[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]?[/TD]
[TD]63[/TD]
[/TR]
[TR]
[TD]-[/TD]
[TD]63[/TD]
[/TR]
</TBODY>[/TABLE]
The first row is a typed in -
The second row is a typed in ?
The last row is the - from the pasted value
I am a bit mythed by an issue I am having in Excel 2010.
I have two different characters displaying as - and ? but are both returning 63 from CODE().
I know the - should return 45.
Anyone got any ideas how this can be happening?
Thanks in advance for any assistance
Mike
Background:
Somone was copy and pasting values from an excel workbook into a database search and the db was not returning any hits. when the - in the search criteria were removed and replaced with wildcards the search returned hits.
They then sent the number to me via office communicator (Copied and pasted below)
CRL1‐XRL‐Z3‐ADDSD‐CR001‐50147
Where it no longer displayed as a - but as a non printable character (empty square).
I then copied this back into excel and it again displayed as -.
I then used CODE() and CHAR() to try and see what was what.
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Character[/TD]
[TD]CODE()[/TD]
[/TR]
[TR]
[TD]-[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]?[/TD]
[TD]63[/TD]
[/TR]
[TR]
[TD]-[/TD]
[TD]63[/TD]
[/TR]
</TBODY>[/TABLE]
The first row is a typed in -
The second row is a typed in ?
The last row is the - from the pasted value