Changing number format to ten thousands

kirkley08

New Member
Joined
Mar 29, 2023
Messages
20
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
Hi, I have loads of data in numbers and I want to change it to the format of ten thousands.
For example:
20,000 = 2.00
200,000 = 20.00
65,887 = 6.59
894,021 = 89.40

I've been searching for the answer but only for thousands and milions.
 
Why not just divide the value in column A by 10000 and format as a number with two decimal places, i.e.
formula to put in cell B2:
Excel Formula:
=A2/10000
I'm thinking of using format instead because I want it to be changed automatically whenever I put a number in the cell.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I'm thinking of using format instead because I want it to be changed automatically whenever I put a number in the cell.
I would then recommend to use VBA to automatically divide it by 10000 upon entering.

If you want to do that, right-click on the sheet tab name at the bottom of the screen, select View Code, and paste this code in the VBA Editor window that pops up:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.CountLarge > 1 Then Exit Sub
    
'   See if value entered in is in column A
    If Target.Column = 1 Then
'       See if value entered is numeric
        If IsNumeric(Target) Then
'           Divide by 10000
            Application.EnableEvents = False
            Target.Value = Target.Value / 10000
            Target.NumberFormat = "0.00"
            Application.EnableEvents = True
        End If
    End If
    
End Sub
This is set to work on entries in column A, but can easily be changed if we need it to run on a different column.
 
Upvote 1
Solution
Why not just divide the value in column A by 10000 and format as a number with two decimal places, i.e.
formula to put in cell B2:
Excel Formula:
=A2/10000
@Joe4 , that is good if that cell is the final destination for the value. But if the OP is going to use it further downstream it changes the value. Of course can always multiply it by 10000 in the next downstream formula.
 
Upvote 0
@Joe4 , that is good if that cell is the final destination for the value. But if the OP is going to use it further downstream it changes the value. Of course can always multiply it by 10000 in the next downstream formula.
Yep, that is exactly what I would do, if needed in further calculations (multiply by 10000).
 
Upvote 0
I would then recommend to use VBA to automatically divide it by 10000 upon entering.

If you want to do that, right-click on the sheet tab name at the bottom of the screen, select View Code, and paste this code in the VBA Editor window that pops up:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.CountLarge > 1 Then Exit Sub
   
'   See if value entered in is in column A
    If Target.Column = 1 Then
'       See if value entered is numeric
        If IsNumeric(Target) Then
'           Divide by 10000
            Application.EnableEvents = False
            Target.Value = Target.Value / 10000
            Target.NumberFormat = "0.00"
            Application.EnableEvents = True
        End If
    End If
   
End Sub
This is set to work on entries in column A, but can easily be changed if we need it to run on a different column.
Well I think this is the most easy way to set the format for the whole column for now, although yeah there are many different ways too such as dividing the cells value by 10000.

Thank you again for all of you good sirs! I appreciate the help!
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,224,163
Messages
6,176,811
Members
452,744
Latest member
Alleo

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
Back
Top