Read specific column in excel

how i get unique value from specific column.

ex: usr_name | location | value

    yogita       |  aumbai   |  xyz
    yogita       |  aune       |  pqr
   Akshay      |   aune      |   abc
    tanvi         |     tyffh      |   bc

read column usr_name &
output below:
usr_name
yogita
Akshay
tanvi

Hi @yogitagaikwad2206

Required from only one Column?

Hi @yogitagaikwad2206

Hoping that you have this data in a tabular format already,
if you have it then you can just filter dataTable Activity and
in the output Columns, select Keep and enter usr_name column in the input field below.
image

And then use Remove Duplicate Rows activity:
image

Thanks

Happy Automation!

@Yogita

Do something like this with the DataTable

It will result into
image

Thanks

Read Range and Output will be dt_Input

Assign dt_Unique(Type DataTable) = dt_Input.DefaultView.ToTable(True,“usr_name”)

Hope it will help you…
Thank you…

1 Like

yes i want only unique name of usr_name column from excel

Read the excel using read range activity.

Once you have the datatable use the follwoing LINQ:

DT.AsEnumerable.Select(Function(r)r(“ColName”).ToString).Distinct.First

So to get only one column use Output from filter datatable activity and to get distinct values use linq i shared above.

Thanks.

can u send workflow of this i want type unique value in text box of usr_name one by one?

test12.xaml (10.3 KB)

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