Hi there, I'm having trouble with data being entered into Excel. I have searched for answers on this, but nothing seems to match exactly what I need. At the moment I have a VBA program that reads data from an XML file (which gets spat out of a database program), and inserts this data into an Excel spreadsheet for further analysis. Much of the data comes down in the form of numbers to 1dp, but someone has come to me saying they need to know if someone entered "2" into the database program, or 2.0. When my code enters 2, or 2.0 into Excel, both end up being listed in the formula bar as just 2. Therefore I don't know if the user entered 2 or 2.0. Is there any way that you can alter the behaviour of Excel to stop removing trailing zeros, so that I can see the difference between a user entering 2 or 2.0? Now from what I've found through search, people just say set the cell format to text, but I have a whole load of functions that look to see if what's been entered is a number or not, and if I move over to a text based column I'll need to modify some complex logic tests that I really don't want to tinker with.
As a side note, you might ask why does this matter, as 2 is the same as 2.0, but these numbers are assessment grades and it implies the user isn't grading properly, which needs to be flagged up.
Hope that makes sense, thanks!
Chris
Bookmarks