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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

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.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]5.132849E-01[/TD]
[TD][/TD]
[TD]1.268000E-04[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1.280000E+02[/TD]
[TD][/TD]
[TD]2.282121E+03[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5.133000E+05[/TD]
[TD][/TD]
[TD]1.252540E+00[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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! :bow::bow:
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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