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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

How to merger 2 columns in excel buffer in business central

(0) ShareShare
ReportReport
Posted on by 153
Hi guys,
How to merge two columns in using excel buffer.
Is any way to do this. or any sample example
 
I have the same question (0)
  • liki Profile Picture
    5 on at
    Hi,
    i would write extension where 
     
    // Retrieve the values from the two columns
    string column1Value = ExcelBuffer.GetValueByCellName("A1");
    string column2Value = ExcelBuffer.GetValueByCellName("B1");

    // Merge the values with a separator
    string mergedValue = column1Value + " " + column2Value;

    // Write the merged value to a specific cell
    ExcelBuffer.WriteCellValue("C1", mergedValue);
     
  • Suggested answer
    tanya07 Profile Picture
    1,638 on at
    Hi,
     
    You can also calculate C1 value before like ..
    A1:=0;
    B1:=0;
    C1:=0;
    C1 := A1 + B1;
     
    and then use -
    ExcelBuf.AddColumn(A1, FALSE, '', FALSE, FALSE, FALSE, '#,##0.00', ExcelBuf."Cell Type"::Number);
    ExcelBuf.AddColumn(B1, FALSE, '', FALSE, FALSE, FALSE, '#,##0.00', ExcelBuf."Cell Type"::Number);
    ExcelBuf.AddColumn(C1, FALSE, '', FALSE, FALSE, FALSE, '#,##0.00', ExcelBuf."Cell Type"::Number);
     
    Regards,
    TK

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,958 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,101 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans