How to read Excel files which contain merged cells

Hi,

I would like to know how to read excel file in UiPath Studio. The Excel file contains merged cells. Example of the input excel file is shown below.

After reading successfully, I would like to filtered those student IDs who completed courses. Filter data table where Completion % column value is 100

In addition, I also want to remove Completed columns and finally saved those data in to Excel files with “processed_file.xlsx”.

The output file should be look like below figure -

Can any one can help this challenge?

Thanks.

Can you share excel file ?

CourseData_Examples.xlsx (10.5 KB)

Hi @peter.tun

Can you try below query

dtFiltered = (From row In dtInput.AsEnumerable()
              Where row("Completion %").ToString() = "100"
              Select dtInput.Clone().LoadDataRow(New Object() {
                  row("Student ID"),
                  row("Course Name"),
                  row("Course Start Date"),
                  row("Course Completed Date"),
                  row("Course Start Date (Maths)"),
                  row("Course Completed Date (Maths)"),
                  row("Completion %")
              }, False)).CopyToDataTable()

Regards,

Hi @lrtetala

I would like to how to read that excel file in UiPath Studio?

Thanks.

Hi @peter.tun

Please find attached workflow
MergeCells.zip (64.7 KB)

If you found useful please mark as solution

Happy Automation

Hi @Akash_Javalekar1 ,

Thanks for your help. I found some arrangements mistakes in Sheet1.

Under PythonProgramming column there should be only 2 sub columns “Course Start Date” and Course Completed Date".

Similarly, under Maths column, there should be only 2 sub columns “Course Start Date” and “Course Completed Date”

Lastly, Completion % column is a separate column. It should not be under Maths.

Could you help me correct those mistakes?

Thank you.

Hi @peter.tun got it let me check