Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default decimal places

hi

how can i get a result with only say 2 decimal places?
i have something like

num = 34* nrows/500/60

i want to display this in a message box with only 2
decimal places.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default decimal places

MsgBox Format(num, "#.00")

--

Vasant

"keyur" wrote in message
...
hi

how can i get a result with only say 2 decimal places?
i have something like

num = 34* nrows/500/60

i want to display this in a message box with only 2
decimal places.

thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default thanks decimal places

thanks a lot
-----Original Message-----
MsgBox Format(num, "#.00")

--

Vasant

"keyur" wrote in

message
...
hi

how can i get a result with only say 2 decimal places?
i have something like

num = 34* nrows/500/60

i want to display this in a message box with only 2
decimal places.

thanks



.

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
More than two decimal places austris Excel Discussion (Misc queries) 0 May 1st 10 10:06 AM
Decimal places Tricia Excel Worksheet Functions 2 October 27th 08 03:14 AM
Decimal Places Tafmutt Excel Discussion (Misc queries) 2 March 14th 07 09:22 PM
Subtracting two 2-decimal place numbers gives result 13-decimal places? [email protected] Excel Worksheet Functions 5 March 12th 07 10:38 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM


All times are GMT +1. The time now is 11:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"