excel : remove scientific notation

huiyin9218

Board Regular
Joined
Aug 7, 2018
Messages
53
Hi,

May I know is it possible to remove "E+02" from 3.840000E+02 to become 3.840000? I know the value is before and after is different but is it possible?

Hope you guys can help me.
 
Last edited:
Sorry for bothering again. May I know how to extend the range of the code to other columns as well? Because my data are listed in more one column.
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

From the code you guys suggested, it is for one column and until the end of the row which contains data. I hoping that if the code can continue to run until the end of column that contains data as well.

5.132849E-011.268000E-04
1.280000E+022.282121E+03
5.133000E+051.252540E+00

<tbody>
</tbody>

Table above is the example of my data, it is not only in column A, it is also in column B
 
Upvote 0
Table above is the example of my data, it is not only in column A, it is also in column B
In that case try
Code:
Sub RemoveIt()
  Dim c As Range
  Dim lr As Long
  
  lr = Columns("A:B").Find(What:="*", LookIn:=xlValues, SearchOrder:=xlByRows, SearchDirection:=xlPrevious, SearchFormat:=False).Row
  For Each c In Range("A2:B" & lr)
    c.Value = Left(c.Text, 8)
  Next c
  Columns("A:B").NumberFormat = "0.000000"
End Sub
 
Upvote 0
In that case try
Code:
Sub RemoveIt()
  Dim c As Range
  Dim lr As Long
  
  lr = Columns("A:B").Find(What:="*", LookIn:=xlValues, SearchOrder:=xlByRows, SearchDirection:=xlPrevious, SearchFormat:=False).Row
  For Each c In Range("A2:B" & lr)
    c.Value = Left(c.Text, 8)
  Next c
  Columns("A:B").NumberFormat = "0.000000"
End Sub

THANK YOU SO MUCH! (y)(y)
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,124
Members
449,096
Latest member
provoking

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