Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Rounding numbers so that they are divisable by 3

1 B C
2 Original figure Annual Increase
divisible by 3
3 2.25%
£ 15,441.00 £15,788.4225

I want C3 to read £15789.00 as it is the nearest number to £15788.4225 that
is divisible by 3
The formula i used in C3 is =B3+($C$2*B3)
How can i amend this formula to ensure that my figure is divisable by 3

--
Thank you for reading my post. Hopefully you can answer my querie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Rounding numbers so that they are divisable by 3

=ROUND((B3+($C$2*B3))/3,0)*3

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Shazza" wrote in message
...
1 B C
2 Original figure Annual Increase
divisible by 3
3 2.25%
£ 15,441.00 £15,788.4225

I want C3 to read £15789.00 as it is the nearest number to £15788.4225
that
is divisible by 3
The formula i used in C3 is =B3+($C$2*B3)
How can i amend this formula to ensure that my figure is divisable by 3

--
Thank you for reading my post. Hopefully you can answer my querie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Rounding numbers so that they are divisable by 3

Maybe

=MROUND(B3+($C$2*B3),3)

Mike

"Shazza" wrote:

1 B C
2 Original figure Annual Increase
divisible by 3
3 2.25%
£ 15,441.00 £15,788.4225

I want C3 to read £15789.00 as it is the nearest number to £15788.4225 that
is divisible by 3
The formula i used in C3 is =B3+($C$2*B3)
How can i amend this formula to ensure that my figure is divisable by 3

--
Thank you for reading my post. Hopefully you can answer my querie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Rounding numbers so that they are divisable by 3

Your original code could be changed
from
B3+($C$2*B3)
to
B3*(1+$C$2)

This is the formula
=INT(B3*(1+$C$2)+CHOOSE(MOD(INT(B3*(1+$C$2)),3)+1, 0,2,1))

Taking the INT of the number will get rid of all the decimal places. Taking
the Mod base 3 of the number gets you the remainder when dividing by 3.

Choose uses inexing starting at 1 and you don't want to add anything if the
number is exactly divisible by three

Remainder Add
0 0
1 2
2 1

Adding 1 to the remainder you get
Remainder + 1 Add
1 0
2 2
3 1

which is what I put in the CHOOSE part of the formula

"Shazza" wrote:

1 B C
2 Original figure Annual Increase
divisible by 3
3 2.25%
£ 15,441.00 £15,788.4225

I want C3 to read £15789.00 as it is the nearest number to £15788.4225 that
is divisible by 3
The formula i used in C3 is =B3+($C$2*B3)
How can i amend this formula to ensure that my figure is divisable by 3

--
Thank you for reading my post. Hopefully you can answer my querie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Rounding numbers so that they are divisable by 3

What didn't you like about yesterday's answers?

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Shazza" wrote in message
...
1 B C
2 Original figure Annual Increase
divisible by 3
3 2.25%
£ 15,441.00 £15,788.4225

I want C3 to read £15789.00 as it is the nearest number to £15788.4225
that
is divisible by 3
The formula i used in C3 is =B3+($C$2*B3)
How can i amend this formula to ensure that my figure is divisable by 3

--
Thank you for reading my post. Hopefully you can answer my querie





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
Rounding numbers up or down boyshanks Excel Discussion (Misc queries) 13 April 8th 09 03:03 PM
Make my figures divisable by 3 Shazza Excel Discussion (Misc queries) 5 February 5th 08 06:27 PM
Rounding numbers Phil Excel Discussion (Misc queries) 3 March 8th 06 09:35 PM
Rounding up numbers Michelle Nichols via OfficeKB.com Excel Discussion (Misc queries) 2 April 28th 05 05:03 PM
Rounding Numbers Simon Excel Worksheet Functions 5 February 3rd 05 11:24 PM


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