Hello.
I do not become value B hoping that a result becomes A when I carry out this program.
Please teach how it is settled.
Excel excel = new Excel();
Worksheet sheet = excel.Worksheets[0];
sheet.Name = "Sheet1";
Cells cells = sheet.Cells;
Cell cell_a1 = cells["A1"];
Cell cell_a2 = cells["A2"];
cell_a1.PutValue(5);
cell_a2.Formula = "=TIME(A1,0,0)";
excel.CalculateFormula();
Console.WriteLine(cell_a2.DateTimeValue.ToShortTimeString);
The output on the console is:
0:00
Why will not it be output with 5:00?
daimaru(japan)
I translate this sentence by translation software