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: 124
Default Strange behaviour - empty cell being evaluated as numeric

Hi there,

Wonder if anyone can tell me what might be going on here.

I have a routine that check a column of values row by row, cell by cell for various undesirable conditions which if it finds it ends the sub and highlights the offending cell to allow the user to correct it.

It is a series of doubles which I have dimmed as variant, and it checks to see if its numeric, empty or 0.5.

What has happened is that one data entry person has messed up somewhat and entered the numbers in wrongly and to fix it I just entered a formula in excel to turn any cells that were too big into the right number by dividing by 100, and if the cell was empty to give it and empty string value ("").

What is happening is that when it is evaluation an empty cell, it is throwing an error for the condition 0.5 which is very puzzling indeed since it is an empty string.

If I select the offending cell and clear all, then it solves it and the cell is evaluated correctly.

I cannot see why this happens as if it is a string then why would it be evaluated as .05

Any ideas?

Thanks and regards, Mark
 
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
Strange behaviour Anthony[_18_] Excel Programming 4 March 26th 10 09:56 PM
strange behaviour Risky Dave Excel Programming 1 November 26th 08 01:57 AM
cell.replace strange behaviour Nicawette Excel Programming 5 June 13th 06 08:29 PM
Strange Cell Behaviour...? Darin Kramer Excel Programming 3 June 27th 05 12:37 PM


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