Hi all,
I have a formula that goes like this:
=IF(A12604="","",
IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))
+LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))=0,W12604,
IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))>1,
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0),
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))))
But it doesn't seem to work
I am trying to say this:
1) If cell A12604 is blank, make this cell blank: =IF(A12604="","",
2) If cell A12604 isn't blank, lookup the LEN values of the two cells matching A12604 on the 'Org Postcodes' data range, if together they equal zero, provide the result of W12604: IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))
+LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))=0,W12604,
3) If cell A12604 isn't blank, lookup the LEN values of the Org Postcode cell matching A12604 on the 'Org Postcodes' data range, if this is greater than 1 (as in it isn't blank and has an entry), provide me with the value of this 'Organisation Postcode' lookup value:
IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))>1,
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0),
4) If the value is however zero, then provide the value of the Project_Contact_Postcode instead (as if this was zero, then point 2 above would work first and provide the W cell value instead of this one):
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))))
I have a formula that goes like this:
=IF(A12604="","",
IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))
+LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))=0,W12604,
IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))>1,
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0),
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))))
But it doesn't seem to work
I am trying to say this:
1) If cell A12604 is blank, make this cell blank: =IF(A12604="","",
2) If cell A12604 isn't blank, lookup the LEN values of the two cells matching A12604 on the 'Org Postcodes' data range, if together they equal zero, provide the result of W12604: IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))
+LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))=0,W12604,
3) If cell A12604 isn't blank, lookup the LEN values of the Org Postcode cell matching A12604 on the 'Org Postcodes' data range, if this is greater than 1 (as in it isn't blank and has an entry), provide me with the value of this 'Organisation Postcode' lookup value:
IF(LEN(VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))>1,
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0),
4) If the value is however zero, then provide the value of the Project_Contact_Postcode instead (as if this was zero, then point 2 above would work first and provide the W cell value instead of this one):
VLOOKUP(A12604,'Org Postcodes'!$A$1:$P$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$P$1,0),0))))