Hi
I have an excel sheet were I use a sort unique formular.
I add data to the sheet and calculate it with this code:
workbook.CalculateFormula();
workbook.Settings.FormulaSettings.CalculationMode = CalcModeType.Automatic;
await _fileService.UploadWorkbookAsync(workbook, workBookpath);
return FileStreamResultHelper.GetFileStreamResult(workbook, fileName);
The file service uploads it to a storages account in azure.
When I download the sheet the formular is not calculated.
I have to go to the column and press enter in the formular line og press ctrl + alt + f9 for it to get calculated.
Am I doing something wrong or is there anyway to get this calculated ?
SORT and UNIQUE are considered dynamic array formulas which can return results that automatically spill over into multiple cells in the worksheet. Could you please try to add a line (to refresh dynamic array formulas specifically) if it works for your needs?
It is good to hear that the suggested line of code resolved your issue. Please don’t hesitate to reach out to us again if you have any further questions or feedback.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.