formatting problem after download from external application

alisam58

New Member
Joined
Jul 30, 2015
Messages
7
hello all
when downloading data to an excel sheet (office 2010) from am external application (SAP) I have some numeric values that I need to sum.
the problem is that excel does not register the numeric formatting, on many levels.
the number appears as 0.000,000 (dot is thousand separator and comma is decimal separator)
even when selecting the cells and changing the format from "general" to numeric, Excel does not register the change.
I must change the number completely to 0000.00 AND to format the cell to "numeric" for excel to register that it is a numeric value.
How can I default the cells to be numeric and register the value as a numeric value?
or at least perform these changes as mass changes?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Are numbers less than 1000 appearing as text or numbers? Theres a lot of difference between 100.000 and 100,000
 
Upvote 0
You could use these:

For a single cell: =SUBSTITUTE(SUBSTITUTE(A1,".",""),",",".")+0
For adding a range: =SUM(IFERROR(SUBSTITUTE(SUBSTITUTE(A1:A100,".",""),",",".")+0,0)) entered CNTL-SHIFT-ENTER
 
Upvote 0
Select the range
Use Find and Replace (Ctrl+F)
Find ,000
Replace ( Nothng is to be typed)
OK

Use Find and Replace (Ctrl+F)
Find .
Replace ( Nothng is to be typed)
OK

Click outside the range
Select the range
Next to the selected cell or range of cells, click the error button that appears.
On the menu, click Convert to Number.
 
Upvote 0
I have done the replace but this is a report that we regularly download and do not want to have to do the replace every time.
I will try the formula: can I create a macro with this formula?
 
Upvote 0
Select the Range and Run Ths Macro
Code:
Code:
Sub ReformatData()
    
    Selection.Replace What:=",000", Replacement:="", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False
    Selection.Replace What:=".", Replacement:="", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False
    Selection.Value = Selection.Value
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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