user3
(Hyeonwook OH)
1
Hiii I have a problem.
I use datatables.comparison from UIPATH package. It is very useful to compare 2 data tables.
But there is a condition. When comparing 2 tables, only datas in the same row can be compared, and if they are in rows, they cannot be compared.
Ex)
NAME AGE NAME AGE
Anna 28 Tom 35
Tom 32 Anna 21
Monica 27 Ross 36
Ross 31 Monica 25
It cannot be compared because each data(Age by name) you want to compare is located in different row.
Is there any way to compare two data tables that have different rows?
Yoichi
(Yoichi)
3
Hi,
Can you try to use JoinDataTable as the following?
The above returns the following datatable and we can easily compare both age.

Can you share result you expect such as Datatable ,Dictionary etc?
Regards,
user3
(Hyeonwook OH)
4
Thanks for your answer!

I want to ask one more question!
Like a pic.1, I want to find different data even some datas added on the other table.
Regards,
Yoichi
(Yoichi)
5
Hi,
we can also achieve it using JoinDatatable.

Then, result is as the following.

Filtering by Name=String.Empty will be what you need.
Regards,
user3
(Hyeonwook OH)
6
Can you show how to filtering by Name=string.Empty?
I can’t find it myself ㅠ.ㅠ
Thanks!
Yoichi
(Yoichi)
7
Hi,
Can you try to use FilterDataTable activity with the following settings?

Regards,
user3
(Hyeonwook OH)
8
Wow It Works!
I soooooo much appreciate your help!
Thanks. Have a good day~
Best regards,
1 Like
user3
(Hyeonwook OH)
9
Hi,
It’s me again


I did exactly like u said with datas above, but my result doesn’t show Headers (NAME, AGE, NAME_1, AGE_1) like this


How can I solve this problem?!
Yoichi
(Yoichi)
10
Hi,
Can you turn on AddHeader property of WriteRange activity?
Regards,
user3
(Hyeonwook OH)
12
Hi! sorry for keep bothering you.
I want to color datas that I sorted. I tried to use the function ‘Countif’ in excel but it is pretty hard to use.
Ex)

This is sorted data.

This is origin data that I want to color from other sheet.

This is result that I expect.
Is there any method to get result that I expect?
Regards,
Yoichi
(Yoichi)
13
Hi,
Can you elaborate your requirement? What is your “sort”? The table rows seem not sorted in order.
Regards,
user3
(Hyeonwook OH)
14
Sorry, Im bad at English
please forget about ‘sorted’ thing.
I have 4 sheet to do what we said.

The first sheet.

The second sheet.

The third sheet

The fourth sheet
If there are same data included in the 2nd and 4th sheet mutually. I want to color only same data.
Yoichi
(Yoichi)
15
Hi,
The following is rough workflow for your requirement.
(Probably need to tune in details.)
Regards,
user3
(Hyeonwook OH)
16
I have the result like this.

I think, one different thing between your work and my work is range in Input section from Set Range Color.
How can I fix this?
Regards,
Yoichi
(Yoichi)
17
Hi,
For now, can you try to set return value of Lookup Range activity at Range property of Set Color?
Regards,
user3
(Hyeonwook OH)
18
Problem solved!
You are truly Robot Master!
Thank you!!!
Regards,
1 Like