DannyDoobster
New Member
- Joined
- Mar 6, 2009
- Messages
- 8
I have a table like the sample below. If a or b or c is 1, I want to find the first instance of a 1 in d or e or f. By using Match function I get the row in which the first instance occur, but what I want is in which column(s) (d or/and e or/and f) the first instance of 1 occur.
For example, 1 is recorded in a1, then offset in d4. Next, 1 is recorded in b6 then offset in d8 AND f8.
. A B C D E F
1 0 0 0 0 0 0
2 1 0 0 0 0 0
3 0 0 0 0 0 0
4 0 0 0 1 0 0
5 0 0 0 0 0 0
6 0 1 0 0 0 0
7 0 0 0 0 0 0
8 0 0 0 1 1 0
any help would be much appreciated!
For example, 1 is recorded in a1, then offset in d4. Next, 1 is recorded in b6 then offset in d8 AND f8.
. A B C D E F
1 0 0 0 0 0 0
2 1 0 0 0 0 0
3 0 0 0 0 0 0
4 0 0 0 1 0 0
5 0 0 0 0 0 0
6 0 1 0 0 0 0
7 0 0 0 0 0 0
8 0 0 0 1 1 0
any help would be much appreciated!