rohankekatpure1987
New Member
- Joined
- Oct 28, 2015
- Messages
- 34
Hi,
I've the following columns :
[TABLE="width: 722"]
<tbody>[TR]
[TD="align: center"]Segment 1[/TD]
[TD="align: center"]Segment 2[/TD]
[TD="align: center"]Segment 3[/TD]
[TD="align: center"]Segment 4[/TD]
[TD="align: center"]Segment 5[/TD]
[TD="align: center"]Segment 6[/TD]
[TD="align: center"]Segment 7[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Z[/TD]
[/TR]
</tbody>[/TABLE]
Segment 1.....7 are different columns. We have 5 different rows. Each row will have either a value: X,Y,Z or FALSE. I want to find out what value(X or Y or Z) is present in each row.
Expected Output:
[TABLE="width: 818"]
<tbody>[TR]
[TD="align: center"]Segment 1[/TD]
[TD="align: center"]Segment 2[/TD]
[TD="align: center"]Segment 3[/TD]
[TD="align: center"]Segment 4[/TD]
[TD="align: center"]Segment 5[/TD]
[TD="align: center"]Segment 6[/TD]
[TD="align: center"]Segment 7[/TD]
[TD="align: center"]Result [/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]X[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]X[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Z[/TD]
[TD="align: center"]Z[/TD]
[/TR]
</tbody>[/TABLE]
Tried using Index Match but it is not good as can't work with multiple match statements. Can anyone help on how to use multiple Match or by solving this by any other function?
I've the following columns :
[TABLE="width: 722"]
<tbody>[TR]
[TD="align: center"]Segment 1[/TD]
[TD="align: center"]Segment 2[/TD]
[TD="align: center"]Segment 3[/TD]
[TD="align: center"]Segment 4[/TD]
[TD="align: center"]Segment 5[/TD]
[TD="align: center"]Segment 6[/TD]
[TD="align: center"]Segment 7[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Z[/TD]
[/TR]
</tbody>[/TABLE]
Segment 1.....7 are different columns. We have 5 different rows. Each row will have either a value: X,Y,Z or FALSE. I want to find out what value(X or Y or Z) is present in each row.
Expected Output:
[TABLE="width: 818"]
<tbody>[TR]
[TD="align: center"]Segment 1[/TD]
[TD="align: center"]Segment 2[/TD]
[TD="align: center"]Segment 3[/TD]
[TD="align: center"]Segment 4[/TD]
[TD="align: center"]Segment 5[/TD]
[TD="align: center"]Segment 6[/TD]
[TD="align: center"]Segment 7[/TD]
[TD="align: center"]Result [/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]X[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]X[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Y[/TD]
[/TR]
[TR]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]Z[/TD]
[TD="align: center"]Z[/TD]
[/TR]
</tbody>[/TABLE]
Tried using Index Match but it is not good as can't work with multiple match statements. Can anyone help on how to use multiple Match or by solving this by any other function?