Count number of rows in Excel

Hi,

I need some help how I can count the number of rows in an excel and output for that day to another Excel sheet

Hi @chai01

1.Read Range Workbookactivity
2.rowCount = dataTable.Rows.Count.ToString
3.Build Data Table
Add two columns: "Date", "Row Count"
Output: outputDataTable
4.Add Data Row
ArrayRow: {Now.ToString("dd.MM.yyyy"), rowCount.ToString}
DataTable: outputDataTable
5.Write Range Workbook activity

Regards,

Hi,

Thanks for your help. I looked at the screenshot and I will only need the bot to read the number of rows in excel file and extract only the total number in another excel sheet

@chai01

Regards,

I am having trouble sending a screenshot of the workflow :frowning:

for assign i wrote down “dataTable.Rows.Count.ToString” in value to save but facing the error “reference to a non-shared member requires an object reference”

@chai01

dataTable is the output of Read Range Workbook activity did you assigned correctly please check it once

Regards,

i made the change now getting an error "option strict on disallows implicit conversions from string to integer

@chai01

image

rowCount = dataTable.Rows.Count.ToString

Regards,

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