Excel automation 2

hi . how can i select a column and start my process from that column
example: i want to start in Column H Row 9 [H9]
like this
6 - Copy

HI @ldiaz

  1. Use Read Range activity → Store it as Dt1
Range -> ""
  1. Use Read Range activity → Store it as Dt2
Range -> "H9:"+Uipath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(Dt1.Columns.Count)+Dt1.Rows.Count.ToString

Regards
Gokul

1 Like

Hello @ldiaz
Here in Excel what operation are you trying to do? Can you please give more clarity on that?

If you are trying to read excel from H9, then you can use the Read Range activity by providing the Range starting from H9.

Thanks

1 Like

Hello @ldiaz ,

One alternative is to use the Read Column activity (link: https://docs.uipath.com/activities/docs/read-column )

It has this property:

StartingCell - The cell from which to start extracting the column data. Only string variables and strings are supported

Hope it helps!
Best regards,
Marius

1 Like

i’m trying to read multiple columns. is theres a way to do it without indicating in the read range ?

i’m trying to read multiple columns. is theres a way to do it without indicating in the read range ?

i’m trying to read multiple columns. is theres a way to do it without indicating in the read range ?

i’m trying to read multiple columns. is theres a way to do it without indicating in the read range?

If you want to read multiple columns, you can use read as below.

Use Read range for the full excel->Then use Filter datatable activtiy->select keep and mention the columns to keep.

Thanks

1 Like

Have you tried with above expression ? @ldiaz

It will work as you need.

You can also try to use Filter Data Activity

Regards
Gokul

nope. i will try this. thanks

i will try this. thanks

Okay @ldiaz , Try it and let us know if your are facing issue

1 Like

This approach should work for you as you need to retain multiple columns from excel.
Single read range activity and single filter datatable activity.

Thanks

1 Like

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