I want to get the last row from a table

Thank you for your continued support.
Is there a way to get the number in the last row, “9,” from a table like the one in the screenshot, where the first row isn’t the starting point?

I couldn’t get the Find First/Last Data Row activity to work.

Also, due to various circumstances, we plan not to use a DataTable.

I would appreciate your advice.
Thank you.

hi @Teo,

you can do this without using a DataTable. Place Find First/Last Data Row inside Use Excel File, select the range containing your table, choose a column that is always populated, and set the option to Last populated row. Store the output in an Int32 variable such as lastRow. The activity returns the actual Excel row number, so if the last entry is on row 9, lastRow will be 9. If you need the next empty row, use lastRow + 1.

Hello,

It seems to work properly in my environment. How did you test it?

Dear @Yoichi,

Thank you as always for your support.
It seems I was using it incorrectly.
I just needed to set B4 as the starting point and enter the column names.

Thank you for your guidance.
I was able to retrieve the data successfully.

@arjun.shiroya

Thank you for your response.
Thanks to you, I was able to retrieve it successfully.