anjasing
(Anjali)
January 25, 2024, 4:07pm
1
I want to put value in column C/Final color wrt column A/order number and column B/color.
For e.g.
same order number will have same color in final color column.
But final color value in Final color column for respective Order Number depends on preference of color.
Preference of color will be as per below criteria:
a. Value of Final color cell needs to be white only when all of them are white.
b. Value will be Yellow if any of them is Yellow
c. Value will be green only if all of them is green.
Would prefer if someone can provide a excel formula for same instead of going via UiPath. Thanks in advance.
Want similar solution like this:
=LET(Matrixvals;CHOOSECOLS(UNIQUE(FILTER($A$2:$B$9;$A$2:$A$9=A2);FALSE;FALSE);2);
IFS(
ISNUMBER(MATCH(“white”;Matrixvals;0));“white”;
ISNUMBER(MATCH(“yellow”;Matrixvals;0));“yellow”;
ISNUMBER(MATCH(“green”;Matrixvals;0));“green”;
TRUE;“n/a”
))
mkankatala
(Mahesh Kankatala)
January 25, 2024, 4:12pm
2
Hi @anjasing
Could you try the below excel formula and let me know it’s working or not,
=IF(COUNTIFS(A:A, A2, B:B, "White")=COUNTIFS(A:A, A2), "White", IF(COUNTIFS(A:A, A2, B:B, "Yellow")>0, "Yellow", "Green"))
Hope it helps!!
2 Likes
anjasing
(Anjali)
January 25, 2024, 4:28pm
3
Hi @mkankatala ,
Thank you so much for your help,
But, It’s not fulfilling one criteria:
When for e.g. Colour column has 2 white and 1 green for same order number 4, final color should be Yellow.
Sorry it was not mentioned in question asked.
Final color output should be like this:
mkankatala
(Mahesh Kankatala)
January 25, 2024, 4:32pm
4
Is the above expression working for you excluding the new rule @anjasing
anjasing
(Anjali)
January 25, 2024, 4:32pm
5
Yes, it’s working for me.
mkankatala
(Mahesh Kankatala)
January 25, 2024, 4:35pm
6
Try the below one and let me know, @anjasing
=IF(COUNTIFS(A:A, A2, B:B, "White")=COUNTIFS(A:A, A2), "White",
IF(COUNTIFS(A:A, A2, B:B, "Yellow")>0, "Yellow",
IF(COUNTIFS(A:A, A2, B:B, "Green")=1, "Yellow", "Green")))
Hope it helps!!
anjasing
(Anjali)
January 25, 2024, 4:53pm
7
1st one is only coming yellow, which should be green. Everything else is fine. @mkankatala
mkankatala
(Mahesh Kankatala)
January 25, 2024, 4:55pm
8
Provide the output that you have got, share the excel file if possible @anjasing
anjasing
(Anjali)
January 25, 2024, 4:56pm
9
mkankatala
(Mahesh Kankatala)
January 25, 2024, 5:00pm
10
Try this one @anjasing
=IF(COUNTIFS(A:A, A2, B:B, "White")=COUNTIFS(A:A, A2), "White",
IF(COUNTIFS(A:A, A2, B:B, "Yellow")>0, "Yellow",
IF(COUNTIFS(A:A, A2, B:B, "Green")=COUNTIFS(A:A, A2), "Green", "Yellow")))
Check the below output,
Hope you understand!!
1 Like
anjasing
(Anjali)
January 25, 2024, 5:02pm
11
Yes, it works. Thank you so much
mkankatala
(Mahesh Kankatala)
January 25, 2024, 5:03pm
12
It’s my pleasure… @anjasing
Happy Automation!!
1 Like
system
(system)
Closed
January 28, 2024, 5:03pm
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.