If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > opposite of Truncate command in excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-09-06, 05:36
aboo aboo is offline
Registered User
 
Join Date: May 2006
Posts: 178
opposite of Truncate command in excel

Hi guys,

Is there an opposite of Trunc command in Excel?

i.e

If i Trunc(1.2222)

I get "1"


But i just want the "2222"

any ideas?

thanks

aboo
Reply With Quote
  #2 (permalink)  
Old 08-09-06, 08:50
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi aboo

How about =Mod(1.222,1) ??

or what MOD it is derived from 1.22-1*Int(1.222/1)

or, in this case, just 1.222-Int(1.222)

If you have negative numbers this will need considering?

It's all in excel help.

MTB
Reply With Quote
  #3 (permalink)  
Old 08-10-06, 17:39
aboo aboo is offline
Registered User
 
Join Date: May 2006
Posts: 178
thanks Mike
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On