Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Annie
 
Posts: n/a
Default Conditional Rounding

Please, please, please could anyone help with a conditional rounding problem
I urgently need to solve.

A figure needs to be calculated to 3 decimal places with the fourth decimal
place rounded DOWN when it is 5 or less but rounded UP if it is 6 or greater.

Example: 10,000/7,000 = 1.4285714 Rounded to 1.428
Example: 10,000/7,700 = 1.2987013 Rounded to 1.299

Many thanks
Annie

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Conditional Rounding

Hi Annie

For some strange reason you are shifting the general rounding rule by
0.0001. Normally 5 would round up but you want it to round down. So you
have to adjust your number.

E.g. if you number is in A1. The formula in B1 is =Round(A1-0.0001,3)
That way you shift it and then round to 3.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Annie
 
Posts: n/a
Default Conditional Rounding

Thanks for your reply. I tried it but unfortunately 1.298701 is rounded down
to 1.298 and should be 1.299.

I need to be able to round a figure in accordance with the following
government regulations:
Amounts calculated to three decimal places only:
a) adding one thousandth where there would be more than five
ten-thousandths; and
b) ignoring the ten-thousandths where there would be five, or less than
five, ten-thousandths.

I've tried ROUND and ROUNDDOWN but neither seem to work in all scenarios.

Annie

" wrote:

Hi Annie

For some strange reason you are shifting the general rounding rule by
0.0001. Normally 5 would round up but you want it to round down. So you
have to adjust your number.

E.g. if you number is in A1. The formula in B1 is =Round(A1-0.0001,3)
That way you shift it and then round to 3.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Annie
 
Posts: n/a
Default Conditional Rounding

Correction:
Your suggestion does work - I was picking up the wrong cell when I tested it
in haste (oops!). It has been a long day.

Many thanks for your quick and very helpful reply.
VERY SORRY for not testing it properly before replying
Annie

"Annie" wrote:

Thanks for your reply. I tried it but unfortunately 1.298701 is rounded down
to 1.298 and should be 1.299.

I need to be able to round a figure in accordance with the following
government regulations:
Amounts calculated to three decimal places only:
a) adding one thousandth where there would be more than five
ten-thousandths; and
b) ignoring the ten-thousandths where there would be five, or less than
five, ten-thousandths.

I've tried ROUND and ROUNDDOWN but neither seem to work in all scenarios.

Annie

" wrote:

Hi Annie

For some strange reason you are shifting the general rounding rule by
0.0001. Normally 5 would round up but you want it to round down. So you
have to adjust your number.

E.g. if you number is in A1. The formula in B1 is =Round(A1-0.0001,3)
That way you shift it and then round to 3.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trevor Shuttleworth
 
Posts: n/a
Default Conditional Rounding

Annie

why conditional ? Doesn't ROUND do it ?

=ROUND(A1,3)

But I think the ROUND will Round UP on a 5

Maybe ROUNDDOWN(A1,3)

Regards

Trevor


"Annie" wrote in message
...
Please, please, please could anyone help with a conditional rounding
problem
I urgently need to solve.

A figure needs to be calculated to 3 decimal places with the fourth
decimal
place rounded DOWN when it is 5 or less but rounded UP if it is 6 or
greater.

Example: 10,000/7,000 = 1.4285714 Rounded to 1.428
Example: 10,000/7,700 = 1.2987013 Rounded to 1.299

Many thanks
Annie





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 when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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