Hello,
I've been trying to write a formula to return an ID based on two criteria: 1. a unique premises ID, and 2. category type. The data sits on one sheet, the return info on another.
It looks like this:
DATA (In Table2):
<tbody>
</tbody>
Trying to organize it, in a different sheet, like so:
<tbody>
</tbody>
I have this:
Which has returned results, but the wrong ones.
Any help would be appreciated.
I've been trying to write a formula to return an ID based on two criteria: 1. a unique premises ID, and 2. category type. The data sits on one sheet, the return info on another.
It looks like this:
DATA (In Table2):
PIN | PINStatus | PINTYPE | PREMISESID |
01 | Revoked | PON | 123 |
02 | Active | HIPON | 223 |
03 | Active | MIPON | 233 |
04 | Revoked | HIPON | 123 |
05 | Active | PON | 243 |
06 | Revoked | MIPON | 123 |
<tbody>
</tbody>
Trying to organize it, in a different sheet, like so:
Premises ID | PON | PON# | HIPON | HIPON# | MIPON | MIPON# |
123 | Y | 01 | Y | 04 | Y | 06 |
<tbody>
</tbody>
I have this:
=IF(AND((INDEX(Table2[PremisesID],(MATCH(A13,Table2[PremisesID],0))))=A13,(INDEX(Table2[PINType],(MATCH(Table1[PON],Table2[PINTYPE]))))=Table1[PON]),LEFT(Table2[PIN)],999),"N")
Which has returned results, but the wrong ones.
Any help would be appreciated.