LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default How to divide a number into various denominators

On Mon, 4 Jun 2007 04:38:00 -0700, maa wrote:

How to divide a number into various denominators eg thousands, hundreds,
tens, fives & ones for example 5527 can be divided into 5 (thousand), 5
(hundreds), 2(tens) & 7 (ones).


If you want to divide the 5527 into the values you mention, you would have,
instead of 7 (ones), 1(five) and 2 (ones).

In any event, for integers as you indicate, you can do the following.

Set up your top row as follows:

B1: $1,000
C1: $100
D1: $10
E1: $5
F1: $1

A2: $5,527

B2: =INT($A2/B$1)
C2: =INT(($A2-SUMPRODUCT($B$1:B$1,$B2:B2))/C$1)

Fill right C2:F2

Then fill down B2:F2 as far as you require.

If "cents" will be used, then add the value of the coins you want to use to
G1:x1

e.g. G1: $0.50
H1: $0.25

etc.

and change the formula in C2:

=INT(ROUND(($A2-SUMPRODUCT($B$1:B$1,$B2:B2))/C$1,2))

to take care of occasional issues with Excel's handling of decimal numbers.

Fill right and down as before.
--ron
 
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
12ths denominators for fractions in Excel (for pension calcs) pipey king Excel Worksheet Functions 1 August 25th 06 05:13 PM
Divide a number into multiple cells rhon101 Excel Discussion (Misc queries) 2 May 21st 06 06:43 AM
Function 2 divide a number (ie $1.00) by % (ie 25%) to = ($4.00)? Gonecoastal1 Excel Worksheet Functions 12 March 18th 06 03:27 AM
How do I divide a number by another number when there is no divis. Ursula New Users to Excel 1 April 4th 05 04:20 PM
Divide one row over other row I dont wont to divide one number Rick Excel Discussion (Misc queries) 0 March 4th 05 07:13 PM


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