compare matching data in 10 offset rows

scorpweb

Board Regular
Joined
Jul 26, 2011
Messages
124
hey all,

i'm trying to compare data between the active row and the rows below currently have it for -1 row (I have it copied for -2 aswell) ...I need to scan up to 10 rows.

difficulty i'm having is the duplicate line is still used later in a cell comment. so in doing this i would need EVERY duplicate to still be able to picked up in a cell comment.

i don't mind how it can pick up the duplicates as long as i can work with the data :)

any ideas on how i can proceed with this?

Code:
    ElseIf Sheets("Data").Cells(e, cintColAC) = Sheets("Data").Cells(e, cintColAC).Offset(1) And Sheets("Data").Cells(e, cintColLocation) = Sheets("Data").Cells(e, cintColLocation).Offset(1) And Sheets("Data").Cells(e, cintColSchedStart) = Sheets("Data").Cells(e, cintColSchedStart).Offset(1) And Sheets("Data").Cells(e, cintColSchedEnd) = Sheets("Data").Cells(e, cintColSchedEnd).Offset(1) Then
    Sheets("SLOT_line").Cells(Start_row + increment + intLocOffset, Start_col).Select
    Selection.AddComment.Text (comm2)
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Watch MrExcel Video

Forum statistics

Threads
1,130,117
Messages
5,640,206
Members
417,131
Latest member
Seanr19871

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
Top