Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Capturing Decimal Values in Variable - Losing decimals when summin

I have a variable, "Current", that sums various dollar values from a range
based on certain criteria. However, when I report the total value of
"Current", I get a value that has been rounded. Where I expected to receive
243.25, I get 243.00

What do I need to do to capture the actual value?

Current is declared as Long

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Capturing Decimal Values in Variable - Losing decimals when summin

Another board gave me the answer.

The sum is a currency, so

Dim Current as Currency is an option, as is
Dim current as Double

"Mark" wrote:

I have a variable, "Current", that sums various dollar values from a range
based on certain criteria. However, when I report the total value of
"Current", I get a value that has been rounded. Where I expected to receive
243.25, I get 243.00

What do I need to do to capture the actual value?

Current is declared as Long

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
Conditional Formatting - Losing Values Dana Excel Discussion (Misc queries) 7 November 26th 09 04:34 PM
Protect worksheet - losing values Bob Excel Worksheet Functions 0 June 23rd 08 07:51 PM
Summin Pivot Table data from a date selected in the Page field John Excel Discussion (Misc queries) 1 November 10th 06 10:32 PM
How can I change time format to decimal without losing hours? Bushman Excel Discussion (Misc queries) 2 July 16th 06 04:31 PM
concatenating "00"&"00"&"01" without losing the zero values CLR Excel Worksheet Functions 3 May 29th 05 02:38 AM


All times are GMT +1. The time now is 08:19 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"