Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hey all,
I have a formula, which basically concatenates the first name and middle initial to right of ampersand with the last name to left of ampersand if an ampersand exists in cell: Code:
=IF( ISERROR( SEARCH("&", 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:
CORNWALL,CORNWALL,ANNA CORNWALL,A ROBERT & CORNWALL,ANNA It stringed together CORNWALL as the last name and CORNWALL as the first name. Is there a way to check for the following pattern using excel formulas: [name],[name], and replace with [name], I'm just trying to avoid duplicate last names. Thanks for response. |
#2
![]() |
|||
|
|||
![]() Quote:
__________________
Asobi Wa Owari Da |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check the lasta character | Excel Worksheet Functions | |||
Check for character in string | Excel Discussion (Misc queries) | |||
Spell check / character cell limit | Excel Discussion (Misc queries) | |||
ü instead of a check mark when I try to copy it from Character Map | Excel Discussion (Misc queries) | |||
formula to check Cell value within specific character | Excel Discussion (Misc queries) |