Hi all
I have workbook with data in sheet(data).range("A1:Ai) , i= last row
Now I want to mark YES with conditions match row and column for each Cell in range(cells(2,3),cells(lr,lc)) , lr = last row in column B, lc = last column in row
Else will mark NO
Data and result like table belove. Please help me.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A12345-B9123456-C123454-D20193-00[/TD]
[TD][/TD]
[TD]A12345[/TD]
[TD]A12346[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A12345-B9123456-C123456-D20193-00[/TD]
[TD]C123456[/TD]
[TD]YES[/TD]
[TD]YES[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]A12345-B9123456-C123455-D20193-00[/TD]
[TD]C123455[/TD]
[TD]YES[/TD]
[TD]NO[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A12345-B9123456-C123456-D20193-00[/TD]
[TD]C123444[/TD]
[TD]NO[/TD]
[TD]NO[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]A12346-B9123456-C123456-D20193-00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]A12347-B9123456-C123456-D20193-00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD].....[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have workbook with data in sheet(data).range("A1:Ai) , i= last row
Now I want to mark YES with conditions match row and column for each Cell in range(cells(2,3),cells(lr,lc)) , lr = last row in column B, lc = last column in row
Else will mark NO
Data and result like table belove. Please help me.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A12345-B9123456-C123454-D20193-00[/TD]
[TD][/TD]
[TD]A12345[/TD]
[TD]A12346[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A12345-B9123456-C123456-D20193-00[/TD]
[TD]C123456[/TD]
[TD]YES[/TD]
[TD]YES[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]A12345-B9123456-C123455-D20193-00[/TD]
[TD]C123455[/TD]
[TD]YES[/TD]
[TD]NO[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A12345-B9123456-C123456-D20193-00[/TD]
[TD]C123444[/TD]
[TD]NO[/TD]
[TD]NO[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]A12346-B9123456-C123456-D20193-00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]A12347-B9123456-C123456-D20193-00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD].....[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]