Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Numerical Breakdown


Hi all

This is my problem:


I need a breakdown of a number that the user types in in cell A1, i
terms of 1000's and 500's and 100s and 10's and 1's

E.g 7551 would be

1000's = 7
500's = 1
100's = 0
10's = 5
1's = 1

and

786 would be

1000's = 0
500's = 1
100's = 2
10's = 8
1's = 6

and 11655 would be


1000's = 11
500's = 1
100's = 1
10's = 5
1's = 5



Any ideas? Many thanks al

--
HUBBUB8
-----------------------------------------------------------------------
HUBBUB88's Profile: http://www.excelforum.com/member.php...fo&userid=2441
View this thread: http://www.excelforum.com/showthread.php?threadid=38014

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Numerical Breakdown

On Fri, 17 Jun 2005 11:55:38 -0500, HUBBUB88
wrote:


Hi all

This is my problem:


I need a breakdown of a number that the user types in in cell A1, in
terms of 1000's and 500's and 100s and 10's and 1's


This seems to work, but not extensively tested.

Set up a worksheet as follows:

C1: 1000
D1: 500
E1: 100
F1: 10
G1: 1

C2: =INT(Num/C1)
D2: =INT((Num-INT(SUMPRODUCT($C$1:C1,$C$2:C2)))/D1)

then copy/drag the formula in D2 across to G2.


--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Numerical Breakdown


For cell A1, these formulas return 1000's, 500's, 100's, 10's, and 1'
respectively:

=INT(A1/1000)
=INT(MOD(A1,1000)/500)
=INT(MOD(A1,500)/100)
=INT(MOD(A1,100)/10)
=MOD(A1,10)

Does that help?

Regards,
Ro

--
Ron Coderr
-----------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...fo&userid=2141
View this thread: http://www.excelforum.com/showthread.php?threadid=38014

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Numerical Breakdown

On Fri, 17 Jun 2005 12:14:27 -0500, Ron Coderre
wrote:


For cell A1, these formulas return 1000's, 500's, 100's, 10's, and 1's
respectively:

=INT(A1/1000)
=INT(MOD(A1,1000)/500)
=INT(MOD(A1,500)/100)
=INT(MOD(A1,100)/10)
=MOD(A1,10)

Does that help?

Regards,
Ron


And simpler than mine.
--ron
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 do I resort numerical info into numerical order Liz M Excel Worksheet Functions 1 May 19th 10 12:09 PM
best breakdown ekkeindoha Excel Worksheet Functions 2 February 3rd 10 06:45 PM
breakdown months Hank Excel Discussion (Misc queries) 3 September 3rd 09 03:58 AM
Breakdown AJ Excel Worksheet Functions 1 May 3rd 06 09:02 PM
How 2 breakdown $$$ into $ $ $? mjpage Excel Discussion (Misc queries) 2 January 8th 06 12:16 AM


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