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: 52
Default Cell-format and comparison

Hi,


I have a lot of cells with numbers. Sometimes, Excel interprets these cells
as text. In the debugger, I get this

?Val([gPD]) < Val([gPD_Count])

False

?[gPD] < [gPD_Count]

True



So, If I convert the named cells to values, everything works fine, but not
always if I don't. Thus this means I have to change my code for every named
cell to

Val([Cell]), or is there another way? As I said, I have a lot of named
cells with numbers, and a lot of code to check.



Why does Excel not sea that it's a number? (Sometimes, I pasted a lot of
numbers programmatically in a sheet, and then, Excel misinterprets!)



Thanks

Jos Vens


 
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
Insert a value in a cell based upon a comparison of cell values in 2 separate worksheets Doctorjones_md Excel Discussion (Misc queries) 7 June 8th 07 09:32 PM
Insert a value in a cell based upon a comparison of cell values in 2 separate worksheets Doctorjones_md Excel Worksheet Functions 7 June 8th 07 09:32 PM
How do I format a formula to recognize multiple comparison factors CandaceES Excel Worksheet Functions 0 April 20th 06 08:32 PM
cell comparison Elaine New Users to Excel 1 October 20th 05 03:49 AM
If then Cell comparison with text. SS[_3_] Excel Programming 1 February 2nd 04 10:50 PM


All times are GMT +1. The time now is 03:35 AM.

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"