Originally Posted by
XOR LX
Correction to my previous formula (again, must be array-entered):
=INDEX(TRIM(MID(SUBSTITUTE(B1,",",REPT(" ",255)),255*(ROW(INDIRECT("1:"&1+LEN(B1)-LEN(SUBSTITUTE(B1,",",""))))-1)+1,255)),MATCH(0,MMULT(TRANSPOSE(IF(ISERR(SEARCH(TRANSPOSE(TRIM(MID(SUBSTITUTE(B1,",",REPT(" ",255)),255*(ROW(INDIRECT("1:"&1+LEN(B1)-LEN(SUBSTITUTE(B1,",",""))))-1)+1,255))),TRIM(MID(SUBSTITUTE(A1,",",REPT(" ",255)),255*(ROW(INDIRECT("1:"&1+LEN(A1)-LEN(SUBSTITUTE(A1,",",""))))-1)+1,255)))),0,1)),(ROW(INDIRECT("1:"&1+LEN(A1)-LEN(SUBSTITUTE(A1,",",""))))^0)),0))
I suggest that you make a copy of this formula in a further column and replace all instances of A1 with B1 and vice versa. Alternatively, if you absolutely insist on using a single cell, I can adapt the above to detect whichever of A1 and B1 contains the surplus word, though it will most likely mean lengthening the formula considerably.
@nflsales: what if there are e.g. five words in A1 and six in B1?
Regards
Bookmarks