Hi,
I'm trying to find a command which returns the index of the row for which a particular value occurs. In addition, the value cannot be empty.
In total, there are 3 worksheets. Worksheet A has a column with all the values. Worksheet B has a column with values which appear in worksheet A and columns with more information for that value and I want to copy that information into worksheet C.
Say worksheet A is (lines represent empty cells):
a
b
c
Worksheet B looks like this before I run the macro:
a 12 32
c 34 45
b 23 21
Worksheet C looks like this before I run the macro:
a
b
c
and like this after I run the macro:
a 12 32
b 23 21
c 34 45
The structure of the macro looks like this:
- If the value in worksheet A is not empty, look for a row that corresponds to the value in worksheet "B".
- Copy the information in the row from worksheet B.
- Paste it into row i in worksheet "C".