How to sum col1 and col2 data and put the result in col3 with out using each in excel.
Hi @Lokesh_M2 ,
What about below workflow
Sum Col1 and Col2, then update Col3
intSum =CDbl(CurrentRow(“Col1”))+CDbl(CurrentRow(“Col2”))
Thanks,
Rajkumar
Thank u. But i need with out using FOR EACH
Hi @Lokesh_M2 ,
add Column as “Col3” in dtTest, then use below expression
> (From SV In dtTest.AsEnumerable()
> Let Col3= If(IsNumeric(SV("Col1").ToString) And IsNumeric(SV("Col2").ToString),CStr(CDbl(SV("Col1").ToString)+CDbl(SV("Col2").ToString)),"NA")
> Select dtTest2.Rows.Add({SV("Col1").ToString,SV("Col2").ToString,Col3.ToString})).Copytodatatable()
Excel.xaml (7.5 KB)
Input
Output
thanks
Rajkumar
option strict on disallows implicit conversions from ‘string’ to ‘long’
Showing above error