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

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
    How to merger 2 columns in excel buffer in business central
    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
    How to merger 2 columns in excel buffer in business central
    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

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,401

#2
Sumit Singh Profile Picture

Sumit Singh 2,692

#3
YUN ZHU Profile Picture

YUN ZHU 1,935 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans