Count total number of column values

I am having one excel file in which there are 25 sheets.In every sheets there are 12 rows and 6 columns.So the total number is 72 and in excel file it has 1800 columns has data.how to do it?
TIA

Hi @Cuberoot

Can you try the below

Count_Rows=Excel.Sheet(CurrentSheet.Name).DataTableValue.RowCount
Count_Columns=Excel.Sheet(CurrentSheet.Name).DataTableValue.Columns.Count
Total=Total+(Count_Rows*Count_Columns)

Cheers!!

Hi @Cuberoot

Regards

I want how to calcuate total number of columns.if their is one sheet and their is data in 72 cells.then how to do it in UiPath.above shows total rows in one sheet.
image

Can’t we do it in excel application scope?

@Cuberoot

How about the following?

Count_Rows=DataTable.RowCount
Count_Columns=DataTable.ColumnCount
Total=Total+(Count_Rows*Count_Columns)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.