#1   Report Post  
Posted to microsoft.public.excel.misc
kontraa
 
Posts: n/a
Default real number


please help...

i need to control if a value in a cell is real number greater then 0.
The problem is that excel threads date as a number too...thanx


--
kontraa
------------------------------------------------------------------------
kontraa's Profile: http://www.excelforum.com/member.php...o&userid=33028
View this thread: http://www.excelforum.com/showthread...hreadid=528497

  #2   Report Post  
Posted to microsoft.public.excel.misc
robert111
 
Posts: n/a
Default real number


'RIGHT(TEXT(D21,"dd mmm yyyy"),4)

if your date is in d21 this will return the text number 2006, say...

you could then apply an IF statement to this


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=528497

  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default real number

On Fri, 31 Mar 2006 05:40:16 -0600, kontraa
wrote:


please help...

i need to control if a value in a cell is real number greater then 0.
The problem is that excel threads date as a number too...thanx


Since Excel stores dates as serial numbers, one way of determining if the cell
contains a date is to see if the cell is formatted as a date.

e.g:

=LEFT(CELL("format",A1),1)="D"

will be TRUE if the cell is formatted as a date.

So maybe something like:

=AND(LEFT(CELL("format",A1),1)<"D",COUNTIF(A1,"0 "))


--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
kontraa
 
Posts: n/a
Default real number


just perfect...
thanx a lot...


--
kontraa
------------------------------------------------------------------------
kontraa's Profile: http://www.excelforum.com/member.php...o&userid=33028
View this thread: http://www.excelforum.com/showthread...hreadid=528497

  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default real number

On Mon, 3 Apr 2006 02:08:26 -0500, kontraa
wrote:


just perfect...
thanx a lot...


Glad to help.
--ron
Reply
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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
number format Ivan Excel Discussion (Misc queries) 2 October 14th 05 02:08 PM
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 1 October 8th 05 07:33 AM
Count Number of Characters in a cell? AHJuncti Excel Discussion (Misc queries) 2 June 16th 05 07:39 PM
Need number of Saturdays and number of Sundays between 2 dates Class316 Excel Worksheet Functions 1 June 10th 05 02:47 AM


All times are GMT +1. The time now is 05:06 PM.

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"