seperate names/rows with colors --> new row?

StephanV

Board Regular
Joined
Jun 25, 2008
Messages
93
In my workbook I have 2 sheets. The first is my data entry, the second is my database.

In this database there are about 70 different names, and each name can have multiple entries. For example: Row 1 - 7 are mister Gates, 8 - 9 are mister Frankenstein, 10 - 14 are mister Dexter and so on.

To group the names/ sort them. I have used two colors in my existing database, blue and light blue, and so I change the filling of the cells. So all the entries of mister Gates are blue, Frankenstein is light blue, and Dexter is blue again. This way I can easily see which names are grouped, and my database doesnt look like a rainbow.

So far so good, this i can do just by filling the cells by hand.

But, when I add a name using my data entry I want two things to happen:
1) First, check if the name exists in the database, give it the colour of that name.
2) When its a new name, give it the next colour, so when the last color is blue, than the next color must be light blue.

Is this possible?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Here a little example:
10mj4gm.jpg
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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