hola, buenas noches, tengo una consulta, ojala me puedan ayudar.
necesito hacer una suma de toda la columna G, escribirla al lado del ultimo valor escrito en la fila Total general,
pueden ser mucho o pocos valores, por eso necesito que sea al lado del ulitmo valor agregado en la fila total general, lo estoy haciendo en un use excel file…
Use read range activity, (dtInput) add header should be check
if already you having this data table no need to read it again
take one assign activity to calculate the sum
in To section: Create one integer variable intSumVar
In Value : dtInput.AsEnumerable().Where(Function(x) Not String.IsNullOrWhiteSpace(x(“yourColumnName”).ToString)).Sum(Function(y) CInt(y(“yourColumnName”).ToString))
then use write cell workbook activity, in value pass intSumVar.Tostring and in range section pass “G”+(dtInput.Rowcount()+2).Tostring
Make a note these opeations will work when excel is closed if you already performing excel activities you can similar activies insdie of excel application scope.