Hello everyone,
I need help finding the location of rows from 2 different criteria that are in 2 different columns. and here is an example of the data that I have which is located in sheet1
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Data-1[/TD]
[TD]Data-2[/TD]
[TD][/TD]
[TD]FIND :[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ec[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]ec[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ec[/TD]
[TD]z1[/TD]
[TD][/TD]
[TD]v7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]dh[/TD]
[TD]r[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]ec[/TD]
[TD]v7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]dh[/TD]
[TD]kr[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]sp[/TD]
[TD]ro[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Example of the results I want to show are as follows :
If the value in cell D2 = ec and cell D3 = v7
then the message box will display the row location (5)
Any help is appreciated. Thanks!
Kayza
I need help finding the location of rows from 2 different criteria that are in 2 different columns. and here is an example of the data that I have which is located in sheet1
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Data-1[/TD]
[TD]Data-2[/TD]
[TD][/TD]
[TD]FIND :[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ec[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]ec[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ec[/TD]
[TD]z1[/TD]
[TD][/TD]
[TD]v7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]dh[/TD]
[TD]r[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]ec[/TD]
[TD]v7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]dh[/TD]
[TD]kr[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]sp[/TD]
[TD]ro[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Example of the results I want to show are as follows :
If the value in cell D2 = ec and cell D3 = v7
then the message box will display the row location (5)
Any help is appreciated. Thanks!
Kayza
Last edited: