Retrieve list of values from array which has duplicates

Change:
Code:
If SourceData(ro, LevelColm) <> SourceData(rw, LevelColm) Then

to:
Code:
If (SourceData(ro, LevelColm) <> SourceData(rw, LevelColm)) Or (SourceData(ro, CatColm) <> SourceData(rw, CatColm)) Then
to highlight Job Titles which exist on multiple Levels and/or multiple Categories.

Hi p45cal
Thank you for doing that, is it possible to have the coding do the following instead?
- colour code position titles that appear under more than 1 category only? (if they appear under the 1 category but under multiple levels this is ok)
 
Test changing:
Code:
If SourceData(ro, LevelColm) <> SourceData(rw, LevelColm) Then

to:
Code:
If(SourceData(ro, CatColm) <> SourceData(rw, CatColm) Then
to highlight Job Titles which exist on multiple Categories.
 
Test changing:
Code:
If SourceData(ro, LevelColm) <> SourceData(rw, LevelColm) Then

to:
Code:
If(SourceData(ro, CatColm) <> SourceData(rw, CatColm) Then
to highlight Job Titles which exist on multiple Categories.

Hi p45cal - thank you I tried to change the coding but gives me a compile syntax error?
 
An extra bracket crept in:
If SourceData(ro, CatColm) <> SourceData(rw, CatColm) Then
 
An extra bracket crept in:
If SourceData(ro, CatColm) <> SourceData(rw, CatColm) Then

Hi p45cal - thank you, I think its doing the same thing the original coding did, any way to show only same position title matches across category only? so if they appear more than once within the same category but in multiple levels that is ok to not colour? let me know if I'm not making much sense
 
I think it is doing what you want it to, highlighting only job titles which co-exist in multiple categories. Which levels they occur in is being ignored.
The way to see if there is a difference is to use the original coding:
Code:
If SourceData(ro, LevelColm) <> SourceData(rw, LevelColm) Then
and produce the grid. Then copy that grid to a new sheet.
Change the code to:
Code:
If SourceData(ro, CatColm) <> SourceData(rw, CatColm) Then
run it, let it update the original Grid sheet, then compare the two sheets.
 
Hi p45cal! You are amazing it works really well thank you so much for your help!
 
Last edited by a moderator:
Back
Top