Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
while export to excel getting number as 1.85E+13, when number length is above 12 characters how to get number format in excel using c#.

What I have tried:

while export to excel getting number as 1.85E+13, when number length is above 12 characters how to get number format in excel using c#.
Posted
Updated 29-Apr-16 23:50pm

1 solution

Change the cells format to Number, General format cannot cope.

Example type 123456789112 into Cell B1 which displays 123457E+11 then set the cells format to Number corrects the display.

Range("B1").Select
Selection.NumberFormat = "0.00"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900