Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Francesco
 
Posts: n/a
Default Rounding decimals in a summ

HI

working on excel 2003

this what I had set up in a macro

(cell A1 as a value of 12,32)

my macro:

Dim timpt as long
timpt = timpt + cells(1,1).value

the result is 12,00

What I would like and I cannot get it is to keep the decimals and not to
have as a result a rounded number

Any help will be appreciated
Thanks
Francesco
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Rounding decimals in a summ

Dim timpt as Double
timpt = timpt + cells(1,1).value

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Francesco" wrote in message
...
HI

working on excel 2003

this what I had set up in a macro

(cell A1 as a value of 12,32)

my macro:

Dim timpt as long
timpt = timpt + cells(1,1).value

the result is 12,00

What I would like and I cannot get it is to keep the decimals and not to
have as a result a rounded number

Any help will be appreciated
Thanks
Francesco



  #3   Report Post  
Posted to microsoft.public.excel.misc
Francesco
 
Posts: n/a
Default Rounding decimals in a summ

Thaks a lot Bob Finally I got the decimals displayed and not rounded
have a nice day thanks again
Francesco

"Bob Phillips" wrote:

Dim timpt as Double
timpt = timpt + cells(1,1).value

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Francesco" wrote in message
...
HI

working on excel 2003

this what I had set up in a macro

(cell A1 as a value of 12,32)

my macro:

Dim timpt as long
timpt = timpt + cells(1,1).value

the result is 12,00

What I would like and I cannot get it is to keep the decimals and not to
have as a result a rounded number

Any help will be appreciated
Thanks
Francesco




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
Format monetary amount to 9 digits with No decimals without rounding [email protected] Excel Worksheet Functions 4 December 20th 05 11:14 PM
Rounding Decimals Jim May Excel Discussion (Misc queries) 8 November 7th 05 06:02 PM
Rounding results to nearest quarter (in decimals) djarcadian Excel Discussion (Misc queries) 5 October 27th 05 12:35 AM
rounding numbers, with-out decimals. IE:4507 to 4510 rollover22 Excel Worksheet Functions 3 July 27th 05 05:40 PM
Rounding Decimals Sho Excel Worksheet Functions 6 November 16th 04 02:29 PM


All times are GMT +1. The time now is 09:23 AM.

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"