Quick Conditional Formatting for rows with same Data in a Column?
I have lots of data, basically like this:
Name Data Date ...
Groucho 123 06/23/2018
Harpo 321 05/02/2018
Chico 1239 04/17/2018
Zeppo 2938 12/03/2018
Groucho 123098 11/27/2018
Zeppo 29381 07/03/2018
...
I'd like each row with the same Name to be highlighted some color. (I don't particularly care what color if that makes it easier).
So the results would look like this:
(Note: The whole row can be highlighted, or just the row within the "table". Whatever would work is fine with me)
Is there a quick(er) way I can do this? I'd rather not have to enter a bunch of rules like =$A2="Groucho" then set a format, then new rule =$A2="Chico", and set a color, etc. as I could have dozens of names in Column A and manually creating a rule for each is rather time consuming.
I'm open to a VBA option, but prefer a built-in solution if available!
microsoft-excel conditional-formatting
add a comment |
I have lots of data, basically like this:
Name Data Date ...
Groucho 123 06/23/2018
Harpo 321 05/02/2018
Chico 1239 04/17/2018
Zeppo 2938 12/03/2018
Groucho 123098 11/27/2018
Zeppo 29381 07/03/2018
...
I'd like each row with the same Name to be highlighted some color. (I don't particularly care what color if that makes it easier).
So the results would look like this:
(Note: The whole row can be highlighted, or just the row within the "table". Whatever would work is fine with me)
Is there a quick(er) way I can do this? I'd rather not have to enter a bunch of rules like =$A2="Groucho" then set a format, then new rule =$A2="Chico", and set a color, etc. as I could have dozens of names in Column A and manually creating a rule for each is rather time consuming.
I'm open to a VBA option, but prefer a built-in solution if available!
microsoft-excel conditional-formatting
1
Initial research doesn't bring up many baked-in options, but I'm working through a VBA option. Do you need to pick the colors, or are you ok with Excel automatically assigning colors?
– jrichall
Jan 28 at 22:06
@jrichall - In am totally fine with automatic colors - with the caveat that I don't want one Name to be sayRGB(0,0,0)then another name beingRGB(10,0,0)where you can't really discern. I was also about to hop in VBA, and I was going to work that part by storing the colors I've chosen, and before setting the next color, make sure eachR,G, andBvalue is at least X% different than one I've used. Or if it's easier somehow, I'm totally fine with choosing myself.
– BruceWayne
Jan 28 at 22:29
@jrichall maybe store a bunch in a list, using RGB() and just loop through.
– BruceWayne
Jan 29 at 3:19
add a comment |
I have lots of data, basically like this:
Name Data Date ...
Groucho 123 06/23/2018
Harpo 321 05/02/2018
Chico 1239 04/17/2018
Zeppo 2938 12/03/2018
Groucho 123098 11/27/2018
Zeppo 29381 07/03/2018
...
I'd like each row with the same Name to be highlighted some color. (I don't particularly care what color if that makes it easier).
So the results would look like this:
(Note: The whole row can be highlighted, or just the row within the "table". Whatever would work is fine with me)
Is there a quick(er) way I can do this? I'd rather not have to enter a bunch of rules like =$A2="Groucho" then set a format, then new rule =$A2="Chico", and set a color, etc. as I could have dozens of names in Column A and manually creating a rule for each is rather time consuming.
I'm open to a VBA option, but prefer a built-in solution if available!
microsoft-excel conditional-formatting
I have lots of data, basically like this:
Name Data Date ...
Groucho 123 06/23/2018
Harpo 321 05/02/2018
Chico 1239 04/17/2018
Zeppo 2938 12/03/2018
Groucho 123098 11/27/2018
Zeppo 29381 07/03/2018
...
I'd like each row with the same Name to be highlighted some color. (I don't particularly care what color if that makes it easier).
So the results would look like this:
(Note: The whole row can be highlighted, or just the row within the "table". Whatever would work is fine with me)
Is there a quick(er) way I can do this? I'd rather not have to enter a bunch of rules like =$A2="Groucho" then set a format, then new rule =$A2="Chico", and set a color, etc. as I could have dozens of names in Column A and manually creating a rule for each is rather time consuming.
I'm open to a VBA option, but prefer a built-in solution if available!
microsoft-excel conditional-formatting
microsoft-excel conditional-formatting
asked Jan 25 at 22:16
BruceWayneBruceWayne
1,9871721
1,9871721
1
Initial research doesn't bring up many baked-in options, but I'm working through a VBA option. Do you need to pick the colors, or are you ok with Excel automatically assigning colors?
– jrichall
Jan 28 at 22:06
@jrichall - In am totally fine with automatic colors - with the caveat that I don't want one Name to be sayRGB(0,0,0)then another name beingRGB(10,0,0)where you can't really discern. I was also about to hop in VBA, and I was going to work that part by storing the colors I've chosen, and before setting the next color, make sure eachR,G, andBvalue is at least X% different than one I've used. Or if it's easier somehow, I'm totally fine with choosing myself.
– BruceWayne
Jan 28 at 22:29
@jrichall maybe store a bunch in a list, using RGB() and just loop through.
– BruceWayne
Jan 29 at 3:19
add a comment |
1
Initial research doesn't bring up many baked-in options, but I'm working through a VBA option. Do you need to pick the colors, or are you ok with Excel automatically assigning colors?
– jrichall
Jan 28 at 22:06
@jrichall - In am totally fine with automatic colors - with the caveat that I don't want one Name to be sayRGB(0,0,0)then another name beingRGB(10,0,0)where you can't really discern. I was also about to hop in VBA, and I was going to work that part by storing the colors I've chosen, and before setting the next color, make sure eachR,G, andBvalue is at least X% different than one I've used. Or if it's easier somehow, I'm totally fine with choosing myself.
– BruceWayne
Jan 28 at 22:29
@jrichall maybe store a bunch in a list, using RGB() and just loop through.
– BruceWayne
Jan 29 at 3:19
1
1
Initial research doesn't bring up many baked-in options, but I'm working through a VBA option. Do you need to pick the colors, or are you ok with Excel automatically assigning colors?
– jrichall
Jan 28 at 22:06
Initial research doesn't bring up many baked-in options, but I'm working through a VBA option. Do you need to pick the colors, or are you ok with Excel automatically assigning colors?
– jrichall
Jan 28 at 22:06
@jrichall - In am totally fine with automatic colors - with the caveat that I don't want one Name to be say
RGB(0,0,0) then another name being RGB(10,0,0) where you can't really discern. I was also about to hop in VBA, and I was going to work that part by storing the colors I've chosen, and before setting the next color, make sure each R, G, and B value is at least X% different than one I've used. Or if it's easier somehow, I'm totally fine with choosing myself.– BruceWayne
Jan 28 at 22:29
@jrichall - In am totally fine with automatic colors - with the caveat that I don't want one Name to be say
RGB(0,0,0) then another name being RGB(10,0,0) where you can't really discern. I was also about to hop in VBA, and I was going to work that part by storing the colors I've chosen, and before setting the next color, make sure each R, G, and B value is at least X% different than one I've used. Or if it's easier somehow, I'm totally fine with choosing myself.– BruceWayne
Jan 28 at 22:29
@jrichall maybe store a bunch in a list, using RGB() and just loop through.
– BruceWayne
Jan 29 at 3:19
@jrichall maybe store a bunch in a list, using RGB() and just loop through.
– BruceWayne
Jan 29 at 3:19
add a comment |
1 Answer
1
active
oldest
votes
Here's a VBA Solution:
Sub conditional_format_by_name()
Dim rng As Range
On Error Resume Next
Set rng = Application.InputBox("Please select the range to Format", Type:=8)
On Error GoTo 0
If rng Is Nothing Then Exit Sub
rng.Select 'So the user can see the range selected, to know which column they want in the next step
Dim primaryCol As Long
primaryCol = InputBox("Now, **within that range**, which column number do you want to use as the basis for matches?")
rng.Columns(1).Select
Dim primaryList() As Variant
primaryList = rng.Columns(1).Value
Dim unique(), i As Long
unique = removeDuplicates(primaryList)
For i = LBound(unique) To UBound(unique)
Debug.Print "Adding condition for: " & unique(i)
rng.FormatConditions.Add Type:=xlExpression, Formula1:="=" & rng.Cells(1).Address(0) & "=""" & unique(i) & """"
With rng.FormatConditions(1 + i).Interior
.PatternColorIndex = xlAutomatic
.Color = ColorRandomizer()
.TintAndShade = 0.5
End With
rng.FormatConditions(1 + i).StopIfTrue = False
Next i
End Sub
Function removeDuplicates(ByVal myArray As Variant) As Variant
'https://stackoverflow.com/a/43102816/4650297
Dim d As Object
Dim v As Variant 'Value for function
Dim outputArray() As Variant
Dim i As Integer
Set d = CreateObject("Scripting.Dictionary")
For i = LBound(myArray) To UBound(myArray)
d(myArray(i, 1)) = 1
Next i
i = 0
For Each v In d.Keys()
ReDim Preserve outputArray(0 To i)
outputArray(i) = v
i = i + 1
Next v
removeDuplicates = outputArray
End Function
Function ColorRandomizer() As Long
'https://www.ozgrid.com/forum/forum/tip-tricks-code/102242-rgb-color-random
Dim i As Long, j As Long, k As Long, m As Long
Randomize
i = Int((255 * Rnd) + 1)
m = Int((255 * Rnd) + 1)
k = Int((255 * Rnd) + 1)
ColorRandomizer = RGB(i, m, k)
End Function

Issues: The colors for each group may be close to one another, and/or be too dark to be effective. Will think about how to work around this. May have to return R, G, and B values and check for those I've used before, and if the new values are within say 25% of an already used value, generate a new number?
This is the direction I was beginning to build out as well, @BruceWayne, but your vba is much more robust. I was utilizing theInterior.ColorIndexfeature, which definitely uses much different colors, but they're Excel's baked in ones and are pretty ugly.
– jrichall
Jan 29 at 21:25
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398589%2fquick-conditional-formatting-for-rows-with-same-data-in-a-column%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here's a VBA Solution:
Sub conditional_format_by_name()
Dim rng As Range
On Error Resume Next
Set rng = Application.InputBox("Please select the range to Format", Type:=8)
On Error GoTo 0
If rng Is Nothing Then Exit Sub
rng.Select 'So the user can see the range selected, to know which column they want in the next step
Dim primaryCol As Long
primaryCol = InputBox("Now, **within that range**, which column number do you want to use as the basis for matches?")
rng.Columns(1).Select
Dim primaryList() As Variant
primaryList = rng.Columns(1).Value
Dim unique(), i As Long
unique = removeDuplicates(primaryList)
For i = LBound(unique) To UBound(unique)
Debug.Print "Adding condition for: " & unique(i)
rng.FormatConditions.Add Type:=xlExpression, Formula1:="=" & rng.Cells(1).Address(0) & "=""" & unique(i) & """"
With rng.FormatConditions(1 + i).Interior
.PatternColorIndex = xlAutomatic
.Color = ColorRandomizer()
.TintAndShade = 0.5
End With
rng.FormatConditions(1 + i).StopIfTrue = False
Next i
End Sub
Function removeDuplicates(ByVal myArray As Variant) As Variant
'https://stackoverflow.com/a/43102816/4650297
Dim d As Object
Dim v As Variant 'Value for function
Dim outputArray() As Variant
Dim i As Integer
Set d = CreateObject("Scripting.Dictionary")
For i = LBound(myArray) To UBound(myArray)
d(myArray(i, 1)) = 1
Next i
i = 0
For Each v In d.Keys()
ReDim Preserve outputArray(0 To i)
outputArray(i) = v
i = i + 1
Next v
removeDuplicates = outputArray
End Function
Function ColorRandomizer() As Long
'https://www.ozgrid.com/forum/forum/tip-tricks-code/102242-rgb-color-random
Dim i As Long, j As Long, k As Long, m As Long
Randomize
i = Int((255 * Rnd) + 1)
m = Int((255 * Rnd) + 1)
k = Int((255 * Rnd) + 1)
ColorRandomizer = RGB(i, m, k)
End Function

Issues: The colors for each group may be close to one another, and/or be too dark to be effective. Will think about how to work around this. May have to return R, G, and B values and check for those I've used before, and if the new values are within say 25% of an already used value, generate a new number?
This is the direction I was beginning to build out as well, @BruceWayne, but your vba is much more robust. I was utilizing theInterior.ColorIndexfeature, which definitely uses much different colors, but they're Excel's baked in ones and are pretty ugly.
– jrichall
Jan 29 at 21:25
add a comment |
Here's a VBA Solution:
Sub conditional_format_by_name()
Dim rng As Range
On Error Resume Next
Set rng = Application.InputBox("Please select the range to Format", Type:=8)
On Error GoTo 0
If rng Is Nothing Then Exit Sub
rng.Select 'So the user can see the range selected, to know which column they want in the next step
Dim primaryCol As Long
primaryCol = InputBox("Now, **within that range**, which column number do you want to use as the basis for matches?")
rng.Columns(1).Select
Dim primaryList() As Variant
primaryList = rng.Columns(1).Value
Dim unique(), i As Long
unique = removeDuplicates(primaryList)
For i = LBound(unique) To UBound(unique)
Debug.Print "Adding condition for: " & unique(i)
rng.FormatConditions.Add Type:=xlExpression, Formula1:="=" & rng.Cells(1).Address(0) & "=""" & unique(i) & """"
With rng.FormatConditions(1 + i).Interior
.PatternColorIndex = xlAutomatic
.Color = ColorRandomizer()
.TintAndShade = 0.5
End With
rng.FormatConditions(1 + i).StopIfTrue = False
Next i
End Sub
Function removeDuplicates(ByVal myArray As Variant) As Variant
'https://stackoverflow.com/a/43102816/4650297
Dim d As Object
Dim v As Variant 'Value for function
Dim outputArray() As Variant
Dim i As Integer
Set d = CreateObject("Scripting.Dictionary")
For i = LBound(myArray) To UBound(myArray)
d(myArray(i, 1)) = 1
Next i
i = 0
For Each v In d.Keys()
ReDim Preserve outputArray(0 To i)
outputArray(i) = v
i = i + 1
Next v
removeDuplicates = outputArray
End Function
Function ColorRandomizer() As Long
'https://www.ozgrid.com/forum/forum/tip-tricks-code/102242-rgb-color-random
Dim i As Long, j As Long, k As Long, m As Long
Randomize
i = Int((255 * Rnd) + 1)
m = Int((255 * Rnd) + 1)
k = Int((255 * Rnd) + 1)
ColorRandomizer = RGB(i, m, k)
End Function

Issues: The colors for each group may be close to one another, and/or be too dark to be effective. Will think about how to work around this. May have to return R, G, and B values and check for those I've used before, and if the new values are within say 25% of an already used value, generate a new number?
This is the direction I was beginning to build out as well, @BruceWayne, but your vba is much more robust. I was utilizing theInterior.ColorIndexfeature, which definitely uses much different colors, but they're Excel's baked in ones and are pretty ugly.
– jrichall
Jan 29 at 21:25
add a comment |
Here's a VBA Solution:
Sub conditional_format_by_name()
Dim rng As Range
On Error Resume Next
Set rng = Application.InputBox("Please select the range to Format", Type:=8)
On Error GoTo 0
If rng Is Nothing Then Exit Sub
rng.Select 'So the user can see the range selected, to know which column they want in the next step
Dim primaryCol As Long
primaryCol = InputBox("Now, **within that range**, which column number do you want to use as the basis for matches?")
rng.Columns(1).Select
Dim primaryList() As Variant
primaryList = rng.Columns(1).Value
Dim unique(), i As Long
unique = removeDuplicates(primaryList)
For i = LBound(unique) To UBound(unique)
Debug.Print "Adding condition for: " & unique(i)
rng.FormatConditions.Add Type:=xlExpression, Formula1:="=" & rng.Cells(1).Address(0) & "=""" & unique(i) & """"
With rng.FormatConditions(1 + i).Interior
.PatternColorIndex = xlAutomatic
.Color = ColorRandomizer()
.TintAndShade = 0.5
End With
rng.FormatConditions(1 + i).StopIfTrue = False
Next i
End Sub
Function removeDuplicates(ByVal myArray As Variant) As Variant
'https://stackoverflow.com/a/43102816/4650297
Dim d As Object
Dim v As Variant 'Value for function
Dim outputArray() As Variant
Dim i As Integer
Set d = CreateObject("Scripting.Dictionary")
For i = LBound(myArray) To UBound(myArray)
d(myArray(i, 1)) = 1
Next i
i = 0
For Each v In d.Keys()
ReDim Preserve outputArray(0 To i)
outputArray(i) = v
i = i + 1
Next v
removeDuplicates = outputArray
End Function
Function ColorRandomizer() As Long
'https://www.ozgrid.com/forum/forum/tip-tricks-code/102242-rgb-color-random
Dim i As Long, j As Long, k As Long, m As Long
Randomize
i = Int((255 * Rnd) + 1)
m = Int((255 * Rnd) + 1)
k = Int((255 * Rnd) + 1)
ColorRandomizer = RGB(i, m, k)
End Function

Issues: The colors for each group may be close to one another, and/or be too dark to be effective. Will think about how to work around this. May have to return R, G, and B values and check for those I've used before, and if the new values are within say 25% of an already used value, generate a new number?
Here's a VBA Solution:
Sub conditional_format_by_name()
Dim rng As Range
On Error Resume Next
Set rng = Application.InputBox("Please select the range to Format", Type:=8)
On Error GoTo 0
If rng Is Nothing Then Exit Sub
rng.Select 'So the user can see the range selected, to know which column they want in the next step
Dim primaryCol As Long
primaryCol = InputBox("Now, **within that range**, which column number do you want to use as the basis for matches?")
rng.Columns(1).Select
Dim primaryList() As Variant
primaryList = rng.Columns(1).Value
Dim unique(), i As Long
unique = removeDuplicates(primaryList)
For i = LBound(unique) To UBound(unique)
Debug.Print "Adding condition for: " & unique(i)
rng.FormatConditions.Add Type:=xlExpression, Formula1:="=" & rng.Cells(1).Address(0) & "=""" & unique(i) & """"
With rng.FormatConditions(1 + i).Interior
.PatternColorIndex = xlAutomatic
.Color = ColorRandomizer()
.TintAndShade = 0.5
End With
rng.FormatConditions(1 + i).StopIfTrue = False
Next i
End Sub
Function removeDuplicates(ByVal myArray As Variant) As Variant
'https://stackoverflow.com/a/43102816/4650297
Dim d As Object
Dim v As Variant 'Value for function
Dim outputArray() As Variant
Dim i As Integer
Set d = CreateObject("Scripting.Dictionary")
For i = LBound(myArray) To UBound(myArray)
d(myArray(i, 1)) = 1
Next i
i = 0
For Each v In d.Keys()
ReDim Preserve outputArray(0 To i)
outputArray(i) = v
i = i + 1
Next v
removeDuplicates = outputArray
End Function
Function ColorRandomizer() As Long
'https://www.ozgrid.com/forum/forum/tip-tricks-code/102242-rgb-color-random
Dim i As Long, j As Long, k As Long, m As Long
Randomize
i = Int((255 * Rnd) + 1)
m = Int((255 * Rnd) + 1)
k = Int((255 * Rnd) + 1)
ColorRandomizer = RGB(i, m, k)
End Function

Issues: The colors for each group may be close to one another, and/or be too dark to be effective. Will think about how to work around this. May have to return R, G, and B values and check for those I've used before, and if the new values are within say 25% of an already used value, generate a new number?
answered Jan 29 at 20:57
BruceWayneBruceWayne
1,9871721
1,9871721
This is the direction I was beginning to build out as well, @BruceWayne, but your vba is much more robust. I was utilizing theInterior.ColorIndexfeature, which definitely uses much different colors, but they're Excel's baked in ones and are pretty ugly.
– jrichall
Jan 29 at 21:25
add a comment |
This is the direction I was beginning to build out as well, @BruceWayne, but your vba is much more robust. I was utilizing theInterior.ColorIndexfeature, which definitely uses much different colors, but they're Excel's baked in ones and are pretty ugly.
– jrichall
Jan 29 at 21:25
This is the direction I was beginning to build out as well, @BruceWayne, but your vba is much more robust. I was utilizing the
Interior.ColorIndex feature, which definitely uses much different colors, but they're Excel's baked in ones and are pretty ugly.– jrichall
Jan 29 at 21:25
This is the direction I was beginning to build out as well, @BruceWayne, but your vba is much more robust. I was utilizing the
Interior.ColorIndex feature, which definitely uses much different colors, but they're Excel's baked in ones and are pretty ugly.– jrichall
Jan 29 at 21:25
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398589%2fquick-conditional-formatting-for-rows-with-same-data-in-a-column%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Initial research doesn't bring up many baked-in options, but I'm working through a VBA option. Do you need to pick the colors, or are you ok with Excel automatically assigning colors?
– jrichall
Jan 28 at 22:06
@jrichall - In am totally fine with automatic colors - with the caveat that I don't want one Name to be say
RGB(0,0,0)then another name beingRGB(10,0,0)where you can't really discern. I was also about to hop in VBA, and I was going to work that part by storing the colors I've chosen, and before setting the next color, make sure eachR,G, andBvalue is at least X% different than one I've used. Or if it's easier somehow, I'm totally fine with choosing myself.– BruceWayne
Jan 28 at 22:29
@jrichall maybe store a bunch in a list, using RGB() and just loop through.
– BruceWayne
Jan 29 at 3:19