Breaking up Number Into Hundreds Thousands and Millions

dubroval

New Member
Joined
Oct 4, 2006
Messages
2
Hi All

How would I break up a number like 456,056,123 into 3 cells - one for Hundreds, Thousands, and Millions using functions only ?

Thanks

Alex
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
L

Legacy 68403

Guest
try useing the functions left,mid and right. For example if the cell A1 has the value 456,056,123 try the function

=left(A1,3)*1000000 in cell B1
=mid(A1,4,3)*1000 in cell C1
=right(A1,3) in cell D1
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234

ADVERTISEMENT

notwithstanding answers to questions asked:

millions portion:

=ROUNDDOWN(MOD(A1,1000000000),-6) or =ROUNDDOWN(MOD(A1,10^9),-6)

thousands:

=ROUNDDOWN(MOD(A1,1000000),-3) or =ROUNDDOWN(MOD(A1,10^6),-3)

hundreds:

=ROUNDDOWN(MOD(A1,1000),0) or =ROUNDDOWN(MOD(A1,10^3),0)


...amongst other approaches
 

dubroval

New Member
Joined
Oct 4, 2006
Messages
2
To clarify ....

It can be any number, not just 9 digits and can be negative or positive.

Because we are required to submit data in a predefined format, they are requesting that we have columns for hundreds, thousands, millions and yes even billions. So if a number if -123,456 then billions and millions would be zero, thousands would be -123 and hundreds would be -456.

Thanks,

Alex
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
If your figure is in A1

For hundreds

=MOD(ABS(A1),1000)*SIGN(A1)

thousands

=FLOOR(MOD(ABS(A1),10^6),10^3)*SIGN(A1)

millions

=FLOOR(MOD(ABS(A1),10^9),10^6)*SIGN(A1)

and assuming those three formula are in B1,C1 and D1

billions

=A1-B1-C1-D1
 

Forum statistics

Threads
1,141,012
Messages
5,703,729
Members
421,312
Latest member
Mooncake1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top