Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 10-07-2012, 06:59 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline If formula for subtracting dates Windows 7 64bit If formula for subtracting dates Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,919
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

In fact, when you perform an arithmetic operation on a text string it coerces it to a number. (obvioulsy "abcd" stays "abcd")
If you have a text string like 012345, any arithmetic operation involving this string will coerce it. In your example if you tried C19-Z19 it would work.
OTOH,the comparison operator not being an arithmetic operator does not accomplish this, therefore one has to " cheat" by doing something like *1 or +0 or exp1, etc...
Just be aware that in XL ( as in real life ) what you see is not always what is there.
There are giveaways though. Left aligned cells are text and right aligned are numbers ( if not aligned manually)
The ISTEXT function can help you also.
If you want to know more, delve in the forums, you'll learn a lot
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to add dates terricritch Excel Programming 10 11-08-2011 09:51 AM
If formula for subtracting dates Calculating dates Daria11 Word VBA 1 06-08-2011 06:54 PM
If formula for subtracting dates Mail Merge and GMT/UTC Dates dev98 Mail Merge 2 05-06-2011 05:02 AM
If formula for subtracting dates Calculated dates. Ziggy-R Word 10 09-28-2010 01:42 AM
Adding dates mkkram Word 0 11-27-2006 09:18 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft