Excel VBA to find non unique values with multiple conditions -


i looking trying create excel macro. have large sheet bit this:

account name  address dealer 68687   sara  11 wood 1111 68687   sara  11 wood 1111 68687   sara  11 wood 1111 12345   tom   10 main 7878 12345   tom   10 main 7878 54321   tom   10 main 7878 10101   john  25 lake 3232 10101         25 lake 3232 11111   john  25 lake 3232 

what need highlight rows on sheet each dealer has more 1 unique value in account column, must have value in name column. in above example want highlight rows dealer 7878.

i not if should @ loops or arrays, might take long time sheet quite large.

looking help.

thanks.

james - dirk gave answer in comment. looks ...

enter image description here

the format formula put column f, can see results of calculation.

if feel should still have vba solution, gives starting point how layout code ...

  1. ignore rows empty name
  2. count rows dealer same dealer in current row, , account not same account in current row
  3. if count found in step 2 greater 0, highlight current row.

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -