Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default finding out denominations.!

hi

i'm having values in multiples of 100 in COL A.
i want the quotients in COL B [divisor 500] & COL C [divisor 100]
explained as under:

COL "A" - COL "B" - COL "C"

100 - 0 1
200 - 0 2
500 - 0 5
600 - 1 1
700 - 1 2
1000 - 1 5
1200 - 2 2
1500 - 2 5
1600 - 3 1
1900 - 3 4
2000 - 3 5
2100 - 4 1
2500 - 4 5
50000 - 99 5
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default finding out denominations.!

On Sat, 26 Jul 2008 11:01:17 -0700 (PDT), via135
wrote:

hi

i'm having values in multiples of 100 in COL A.
i want the quotients in COL B [divisor 500] & COL C [divisor 100]
explained as under:

COL "A" - COL "B" - COL "C"

100 - 0 1
200 - 0 2
500 - 0 5
600 - 1 1
700 - 1 2
1000 - 1 5
1200 - 2 2
1500 - 2 5
1600 - 3 1
1900 - 3 4
2000 - 3 5
2100 - 4 1
2500 - 4 5
50000 - 99 5
.
.
.
so on


any hlp pl..?


-via135



Try the following formulas for cell B1 and C1 respectivele:

=INT((A1-1)/500)

=CHOOSE(1+MOD(A1,500)/100,5,1,2,3,4)

Copy them down as far as needed

Hope this helps / Lars-Åke


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default finding out denominations.!

On Jul 26, 11:01 am, via135 wrote:

i'm having values in multiples of 100 in COL A.
i want the quotients in COL B [divisor 500] & COL C
[divisor 100] explained as under:


There may be many solutions. I don't know if this is what your
teacher had in mind, but this is what I came up:

B1: =INT( (A1-1) / 500 )

C1: =INT( ( MOD(A1-1, 500) + 1 ) / 100 )

I suspect the latter can be simplified. I didn't give it more than a
moment's thought.

Let me know what grade I get ;-).


On Jul 26, 11:01*am, via135 wrote:

hi

i'm having values in multiples of 100 in COL A.
i want the quotients in COL B [divisor 500] * & COL C [divisor 100]
explained as under:

COL "A" * * * * * *- * * * * *COL "B" * *- * COL "C"

100 * * * * * * * * * - * * * * * 0 * * * * * * * * * * *1
200 * * * * * * * * * - * * * * * 0 * * * * * * * * * * *2
500 * * * * * * * * * - * * * * * 0 * * * * * * * * * * *5
600 * * * * * * * * *- * * * * * 1 * * * * * * * * * * * 1
700 * * * * * * * * *- * * * * * 1 * * * * * * * * * * * 2
1000 * * * * * * * *- * * * * * *1 * * * * * * * * * * *5
1200 * * * * * * * *- * * * * * 2 * * * * * * * * * * * 2
1500 * * * * * * * *- * * * * * *2 * * * * * * * * * * *5
1600 * * * * * * * *- * * * * * 3 * * * * * * * * * * * 1
1900 * * * * * * * - * * * * * *3 * * * * * * * * * * * 4
2000 * * * * * * * *- * * * * * *3 * * * * * * * * * * *5
2100 * * * * * * * *- * * * * * * 4 * * * * * * * * * * 1
2500 * * * * * * * - * * * * * * 4 * * * * * * * * * * * 5
50000 * * * * * *- * * * * * *99 * * * * * * * * * * * 5
*.
.
.
so on

any hlp pl..?

-via135


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default finding out denominations.!

via135 wrote...
i'm having values in multiples of 100 in COL A.
i want the quotients in COL B [divisor 500] * & COL C [divisor 100]
explained as under:

COL "A" COL "B" COL "C"

100 0 1
200 0 2
500 0 5
600 1 1
700 1 2
1000 1 5
1200 2 2
1500 2 5
1600 3 1
1900 3 4
2000 3 5
2100 4 1
2500 4 5
50000 99 5

...

Any particular reason you want, e.g., 2000 as 3x500 + 5x100 rather
than 4x500?

Anyway, try these formulas. With amount in A3,

C3: =INT(MOD(A3-100,500)/100)+1
B3: =INT((A3-C3*100)/500)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default finding out denominations.!

On Jul 26, 11:44*pm, Harlan Grove wrote:
via135 wrote...
i'm having values in multiples of 100 in COL A.
i want the quotients in COL B [divisor 500] * & COL C [divisor 100]
explained as under:


COL "A" * COL "B" * * * COL "C"


100 * * * * *0 * * * * * * *1
200 * * * * *0 * * * * * * *2
500 * * * * *0 * * * * * * *5
600 * * * * *1 * * * * * * *1
700 * * * * *1 * * * * * * *2
1000 * * * * 1 * * * * * * *5
1200 * * * * 2 * * * * * * *2
1500 * * * * 2 * * * * * * *5
1600 * * * * 3 * * * * * * *1
1900 * * * * 3 * * * * * * *4
2000 * * * * 3 * * * * * * *5
2100 * * * * 4 * * * * * * *1
2500 * * * * 4 * * * * * * *5
50000 * * * 99 * * * * * * *5


...

Any particular reason you want, e.g., 2000 as 3x500 + 5x100 rather
than 4x500?

Anyway, try these formulas. With amount in A3,

C3: *=INT(MOD(A3-100,500)/100)+1
B3: *=INT((A3-C3*100)/500)


thks ..lars, joeu & harlan..!!!
all the three exactly gives the results what i want..!

****Any particular reason you want, e.g., 2000 as 3x500 + 5x100 rather
than 4x500? ****


just to check up disbursement of notes in ATM..that's all..!

thanks all.!!

-via135
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
Finding 1st,2nd,3rd etc checkQ Excel Discussion (Misc queries) 5 May 19th 08 12:38 AM
Finding Max or Min Value [email protected] Excel Discussion (Misc queries) 4 November 24th 06 09:39 AM
Finding last used mikefranklin1969 Excel Worksheet Functions 1 May 12th 06 10:05 PM
cash denominations split up [email protected] Excel Discussion (Misc queries) 5 February 20th 06 11:11 AM
finding the "end" Julia New Users to Excel 2 September 1st 05 02:38 AM


All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"