i have a value that appears multiple times in the first two columns of my data set. i want to be able to return its corresponding value in the third column i f the value appears in the first column, and want to be able to return the value in the fourth column if it appears in the second, all in one single column with no blanks. is there any way of doing this? i tried a nested if statement but it just returned blanks for the rows where the lookup value does not appear, meaning there are large gaps between the returned values. i also tried a more complicated one using index small and row but althpough has no blanks only returns the values across two columns, ie all the corresponding values from the third and fourth columns side by side. it seems just to be one or the other and i cant simply just get all the values appearing consecutively with no spaces under a single column.
Basically i have the follwoing:
1 2 3 4 (col numbers)
A X 0 1
X X 3 4
X X 2 2
X A 2 1
X X 3 2
A X 2 1
and i want to return the follwoing:
For "A":
1 (col number)
0
1
2
with no gaps in between. any ideas?
Basically i have the follwoing:
1 2 3 4 (col numbers)
A X 0 1
X X 3 4
X X 2 2
X A 2 1
X X 3 2
A X 2 1
and i want to return the follwoing:
For "A":
1 (col number)
0
1
2
with no gaps in between. any ideas?