Hi,
I have this table ... this is a part of millions of records.
I have functions that show if STAT is 1 or 0, if type is E, if type is CA. This example shows that the same work 24188686 has one E and two CA. If I filter columns I can see either E or CA from the same work.
I would like to have some formula in the column COMBINE that would check in the first row : if type CA = 0 then check if there are CA's with the same WORKREF as E and if true return value 1.
The same approach for rows where E =0 to check if there are E's with the same WORKREF as CA and return value 1.
The idea is that then I can sum these four columns and filter column TOTAL to show all values =3.
<tbody>
</tbody>
Hope that make sense.
Any suggestions would be much appreciated!!!
Thanks,
A
I have this table ... this is a part of millions of records.
I have functions that show if STAT is 1 or 0, if type is E, if type is CA. This example shows that the same work 24188686 has one E and two CA. If I filter columns I can see either E or CA from the same work.
I would like to have some formula in the column COMBINE that would check in the first row : if type CA = 0 then check if there are CA's with the same WORKREF as E and if true return value 1.
The same approach for rows where E =0 to check if there are E's with the same WORKREF as CA and return value 1.
The idea is that then I can sum these four columns and filter column TOTAL to show all values =3.
WORKREF | STAT | TYPE | IF STATE =1 | IF TYPE = E | IF TYPE = CA | COMBINE | TOTAL |
24188686 | 1 | E | 1 | 1 | 0 | 1 | 3 |
24188686 | 1 | CA | 1 | 0 | 1 | 1 | 3 |
24188686 | 1 | CA | 1 | 0 | 1 | ||
445566 | 0 | CA | 0 | 0 | 1 |
<tbody>
</tbody>
Hope that make sense.
Any suggestions would be much appreciated!!!
Thanks,
A