I am currently writing an application (C#) to generate reports in a excel file, based on other reports.
The problem is that, once get an number from a certain sheet, and copy to another one, the destination cell is not formated correctly, and the number does no display correctly.
E.g :
Number from source : 14.34
Number on destination : 14.345661
How do i format the destination cell to force the number formating to be the same as the source cell.
Thanks !
The format of a given cell/range in excel can be set via code.
In your specific case, I believe you would need to use the format “#.00” or “#.##”