Comparing cells in a column

mfizz

Board Regular
Joined
Dec 18, 2013
Messages
96
Hello,

i want to compare a column's cell to check for variation. The column it self has several parts and therefore is split using coloured cells. There are no variations allowed in each section.

eg. Using this as an example

Yellow coloured cell
ab
ab
ab
ab
Yellow coloured cell
ab
ab
ab
zz
ab
yellow coloured cell
green coloured cell
aa
aa
aa
aa
yellow coloured cell

This first section is fine. The second section should be flagged as they aren't the same. The third section is fine too.

Thanks in advance
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

where should this flag up

should it change the colour of a cell
should it change the text in a cell

Yellow coloured cell (( Change Colour) or (Change Text)) guessing
ab
ab
ab
zz
ab
 
Upvote 0
it should flag in a column offset 6 columns. i have managed to make it work however, i am having trouble identifying last row. the last row is a coloured cell. and therefore for the last section it doesn't calculate. can anyone help identifying the last row in a column that is coloured.
this is what i am using right now.

it identifies the last cell to be that of a cell with contents.

Code:
For i = 2 To Range(column_to_search & Rows.Count).End(xlUp).Row

Usedrange doesn't work either:(
 
Upvote 0

Forum statistics

Threads
1,214,628
Messages
6,120,618
Members
448,973
Latest member
ChristineC

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