#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default best config

Good day,
I would like to teach kids on money.Is there a formula that wil do the
following.
If I enter S35 it should give me a feedback of 1 x $20 , 1 X $10 and 1 X $5
The main notes to be used are $1,$2,$5,$10 and $20.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default best config

Hi ekkeindoha

I set up the following spreadsheet to handle this:

In cell.... put....
B2 35 (or whatever dollar amount you want to split)
C4 20
C5 10
C6 5
C7 2
C8 1
B4 = INT ( $B$2 / C4 )
B5 = INT ( ( $B$2 - B4 * C4 ) / C5 )
B6 = INT ( ( $B$2 - SUMPRODUCT ( $B$4:B5 , $C$4:C5 ) ) / C6 )

Then, copy B6 to B7 and B8.
B7 should read = INT ( ( $B$2 - SUMPRODUCT ( $B$4:B6 , $C$4:C6 ) ) / C7 )
B8 should read = INT ( ( $B$2 - SUMPRODUCT ( $B$4:B7 , $C$4:C7 ) ) / C8 )

The last thing I did was highlight cells C4 to C8 (where the 20, 10, 5, 2
and 1 are) and format the cells putting a custom format of:
"x $"General (you actually type the "")
This will make the 20 appear as x $20

That's it ! Good luck. Write again if you have any problems.

David


"ekkeindoha" wrote:

Good day,
I would like to teach kids on money.Is there a formula that wil do the
following.
If I enter S35 it should give me a feedback of 1 x $20 , 1 X $10 and 1 X $5
The main notes to be used are $1,$2,$5,$10 and $20.

thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 947
Default best config

If I enter S35 ...
The main notes ... are $1,$2,$5,$10 and $20.


As a side note, an interesting programming problem is determining there
are 162 possible solutions.

(although we know you meant the minimum number of denominations)

(Throw in pennies, nickles, dimes, and quarters, and there are
471,281,825 :)

= = = = = = =
Dana DeLouis



On 2/8/10 1:25 AM, ekkeindoha wrote:
Good day,
I would like to teach kids on money.Is there a formula that wil do the
following.
If I enter S35 it should give me a feedback of 1 x $20 , 1 X $10 and 1 X $5
The main notes to be used are $1,$2,$5,$10 and $20.

thanks

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
how to deploy xls with config based conn str (Dev vs Test vs Prod) adolf garlic Excel Discussion (Misc queries) 0 April 1st 09 03:25 PM
Config Now() troubles Libbyc80 Excel Worksheet Functions 0 April 7th 08 06:34 PM


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