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 ...
the format formula put column f, can see results of calculation.
if feel should still have vba solution, gives starting point how layout code ...
- ignore rows empty name
- count rows dealer same dealer in current row, , account not same account in current row
- if count found in step 2 greater 0, highlight current row.
Comments
Post a Comment