web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

=SUM(R4C:R[-2]C) RC Formula Not Working in Export to Excel

(0) ShareShare
ReportReport
Posted on by 2

Hello Expert,

RC formula of excel sheet not working in Business Central Export to Excel Report.

NAV 2009 R2 Version:

We can easily use the any type of RC formula in SUM and IF condition and it is working properly


ExcelBuf.AddColumn('=SUM(R4C:R[-2]C)',FALSE,'',TRUE,TRUE,FALSE,'[Blue]#,##0;[Red](#,##0)');
ExcelBuf.AddColumn('=SUM(R4C:R[-2]C)',FALSE,'',TRUE,TRUE,FALSE,'[Blue]$#,##0.00;[Red]($#,##0.00)'); ExcelBuf.AddColumn('=IF(RC[-3]=0,0,IF((RC[-2]+RC[-1])=0,"forever",RC[-3]/(RC[-2]+RC[-1])))',FALSE,'',TRUE,TRUE,FALSE,'[Blue]#,##0.0');

pastedimage1598162613159v1.png

Business Central On Prime (14)

ExcelBuf.AddColumn('=SUM(R4C:R[-2]C)',TRUE,'',TRUE,TRUE,FALSE,'[Blue]#,##0;[Red](#,##0)',ExcelBuf."Cell Type"::Number);
ExcelBuf.AddColumn('=SUM(R4C:R[-2]C)',TRUE,'',TRUE,TRUE,FALSE,'[Blue]$#,##0.00;[Red]($#,##0.00)',ExcelBuf."Cell Type"::Number);

pastedimage1598162772560v2.png

While run report in busines central it give following error and remove the formula from cell.

pastedimage1598162865076v3.png

I have enable R1C1 reference style sheet in my excel.

pastedimage1598162918863v4.png

Any help? or suggestion how to use RC Formula in Business Central Export to excel?

We are migrating very big project from NAV 09 R2 to BC On-Prime, They are multiple report create with RC Formula in export to excel in old version.

Thanxs in advance

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    on at
    RE: =SUM(R4C:R[-2]C) RC Formula Not Working in Export to Excel

    Excel buffer have been heavily refactored from old classic client to cope with windows client first and then web client. You could open a support request to Microsoft to evaluate the root cause of this issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,750

#2
Sumit Singh Profile Picture

Sumit Singh 2,689

#3
YUN ZHU Profile Picture

YUN ZHU 1,987 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans