LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Rounding questions: (Formula and Code) ?

I have two types of data on which to perform multiplication:

Type 1:
C D E
1.175 * 975 = 1145.625
where 1145.625 rounds to 1145.63 and
if 1145.626 then round to 1145.63, but
if 1145.624 then round to 1145.62

Type 2:
44.44 * 12.5% = 5.555
where 5.555 rounds to 5.56 and if
5.556 then round to 5.56, but if
5.554 then round to 5.55

Each calculated decimal place is included in the rounding,
thus 1.23456789 would round to 1.24
but 1.23356789 would round to 1.23

I can differentiate between the 2 types of data.

How can I use code to get the values in col E, please?

Secondly, a SUM formula currently totals col E. If I
permit a user to enter a value in col E (say in a row
where code had not operated), then that new value is
reflected in the new Summed cell. Can I ensure that
the Summed cell is also rounding along the same lines?

It does not matter that the user's entry might exceed 2
decimal places, just that the summed value is 'corrected'.

Any help would be much appreciated. Thanks.

Regards.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.655 / Virus Database: 420 - Release Date: 08/04/2004


 
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
ROUNDING FORMULA =ROUND(B12/$B$10,1) ROUNDING TO HIGH SunshineinFt.Myers[_2_] Excel Worksheet Functions 7 March 5th 09 06:41 PM
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
2 questions - Creating a TimeBomb - Securing Code David Excel Programming 6 October 21st 03 08:32 PM
Urgent questions regarding the code below Greener Excel Programming 1 October 9th 03 09:26 PM
Two Questions about the Following Block of Code Greener Excel Programming 0 October 9th 03 06:26 PM


All times are GMT +1. The time now is 03:13 AM.

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"