How to get the particular table values and store it into another datatable

Hi,

I have sheet1 which contains mores texts and tables. I need to extract the particular table values. That The table values always start from 9th row of “A” column and end with "E"Column E9. The table contains header, values &
Input.xlsx (8.9 KB)
multiple row.

I need to extract that particular 9th row starting table values alone until the table values comes into empty Row. Bcoz in sheet contains so many tables but i need to extract that table start from 9th row and the row will be one or many.

Can someone Guide me on this please?

Hi @jamuna_T

So your starting point is always fixed that is A9.
You need to find end point, or end row.
Use a Lookup DataTable and find for one header of the next table.
for example you can try to find “NO” or “Range” keyword, in which row it is written, and then.
Use “A9:E”+(indexRowFound+1).toString

Thanks
Happy Automation! :smiley:

1 Like

@adiijaiin Thanks for your response. I will try this.
If possible, Could you please provide the xaml for this

Hi @jamuna_T

TestExcel.xaml (16.1 KB)

THis should work

1 Like

@adiijaiin Thanks for the Response & Xaml. It is working with sample input file as per expected but when I test with actual input file. The second table also added into the output sheet with headers & values. For example please refer output screenshot below.

image

how to get the first table alone and remove second table.
Please let me know @adiijaiin
Thanks!!

Can you DM me this file?
COz I tried to change the data to what you have right now and it worked for me. The same logic worked

1 Like

Hi @jamuna_T

Try this

Input:

Output:

Sequence15.xaml (17.0 KB)

Regards,

1 Like

@lrtetala Thanks for response, It is working , How we can store this values into the datatable variable instead of using the read range activity. Please let me know possible way.
Thanks !!

@ adiijaiin.Thanks for the response. I am not able share the actual input.

@jamuna_T

DT = Excel.Sheet("Final").DataTableValue

Regards,

1 Like

No Problem. :slight_smile: But the code works, I ran a few different sheets that I prepared.

Anyway, glad to help.

1 Like

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