Highlight all rows where the data is equal through multiple columns within a Table?

Klash Ville

Board Regular
Joined
Sep 19, 2017
Messages
83
For example in an already created table with table headers,

on row number 1, I have: Car | Nissan | Japan (same)
on row number 2, I have: Car | Ford | United States
on row number 3, I have: Car | Nissan | Japan (same)
on row number 4, I have: Car | Fiat | Italy

How do I create the code in excel vba to highlight the rows of that table, where the data is exacly the same in all respective table headers?
 
Last edited:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Re: How to highlight all rows where the data is equal through multiple columns within a Table?

- Find your last column used unless you already know it
- Custom sort by column A to last column

- Create variable with data from cells in row 1 of data - IE Concatenate cells(2,1) + cells (2,2)+.....(cells2, last_column) call it, say, ConcatenatedData
- Loop from second row of data with data
- concatenate data as above and compare. If equal then cells(n,last_clumn_1)="Above is the same"
- Set temp variable
- Loop
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top