johnmerlino
Board Regular
- Joined
- Sep 21, 2010
- Messages
- 94
Hey all,
I have a query:
It converts this:
into this:
Problem is with this:
it converts it incorrectly into this:
when I'd want to keep it just as this:
I tried adding a nested iserror to return original row if it doesn't find a comma:
But it gives me this:
Thanks for response.
I have a query:
Code:
=IF( ISERROR( SEARCH("&", J2) ), IF( ISERROR( SEARCH(" ", J2) ), J2, LEFT(J2,LOOKUP(2^15,FIND(" ",J2,ROW(INDIRECT("1:"&LEN(J2)))))-1)),SUBSTITUTE(J2,MID(J2,FIND(",",J2,1)+1,FIND("&",J2,1)-FIND(",",J2,1)),""))
Code:
AVERNA,ROBERT C
Corn,Marlin
Lizand,ROBERT H
CATANESE,SALVATORE J & OLGA M
JIMENEZ,ALEJANDRO & HILDA M
Martin,Harry & Marie Anne Hernara
Code:
AVERNA,ROBERT C
Corn,Marlin
Lizand,ROBERT H
CATANESE, OLGA M
JIMENEZ, HILDA M
Martin, Marie Anne Hernara
Code:
Sarah Ann Little Junior
it converts it incorrectly into this:
Code:
Sarah Ann Little
Code:
Sarah Ann Little Junior
Code:
=IF( ISERROR( SEARCH("&", A1) ),IF( ISERROR( SEARCH(",", A1)),A1,IF( ISERROR( SEARCH(" ", A1) ), A1, LEFT(A1,LOOKUP(2^15,FIND(" ",A1,ROW(INDIRECT("1:"&LEN(A1))))))-1)),SUBSTITUTE(A1,MID(A1,FIND(",",A1,1)+1,FIND("&",A1,1)-FIND(",",A1,1)),""))
Code:
#VALUE!