Hi:
i have got a sheet that looks similar to this
101
102 P1
102 P2
101 P3
101 P4
103 P5
kl 0
P3 0
P4 0
P5 0
P2 0
i tried this array formula
to do the following.
it should look up in the first range which No is selected (in our case it's 101) then it should look up in range 2 what codes are associated with this No (in our case its {P3,P4}) and then it should lookup in range 3 and give me if there is any 0's in the column next to the corresponding Code.
it doesn't work now because the columns in range 3 are not in the same sorted order.
does anybody have a way around this
i would probably be able to make this work with a macro, but i prefer a formula.
Thanks,
Joe
i have got a sheet that looks similar to this
101
102 P1
102 P2
101 P3
101 P4
103 P5
kl 0
P3 0
P4 0
P5 0
P2 0
i tried this array formula
Code:
=MATCH(0,IF(Sheet2!A15:A19=A6,IF(Sheet2!B15:B19=Sheet3!A1:A5,Sheet3!B1:B5,"P")),0)
it should look up in the first range which No is selected (in our case it's 101) then it should look up in range 2 what codes are associated with this No (in our case its {P3,P4}) and then it should lookup in range 3 and give me if there is any 0's in the column next to the corresponding Code.
it doesn't work now because the columns in range 3 are not in the same sorted order.
does anybody have a way around this
i would probably be able to make this work with a macro, but i prefer a formula.
Thanks,
Joe