I am trying to find a way to remove the last character from a cell if it is a number.
In the example below I have email addresses in cells A2 and A3. The formula in cell B2 converts the email address to its proper name. The example formula is shown in Cell D2.
As shown in Cell B3 the formula returns the name with a number at the end, as there is a number in the email address.
Is there a method whereby I can incorporate another formula into that shown in Cell D2 to remove the number from the end IF a number exists.
In the example below I have email addresses in cells A2 and A3. The formula in cell B2 converts the email address to its proper name. The example formula is shown in Cell D2.
As shown in Cell B3 the formula returns the name with a number at the end, as there is a number in the email address.
Is there a method whereby I can incorporate another formula into that shown in Cell D2 to remove the number from the end IF a number exists.
Email Test.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Email Address | Name | Expected Result | ||||
2 | debbie.smith@noemail.com | Debbie Smith | Debbie Smith | =PROPER(SUBSTITUTE(LEFT(C1,FIND("@",C1)-1),"."," ")) | |||
3 | william.jones2@noemail.com | William Jones2 | William Jones | ||||
4 | |||||||
Sheet5 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B3 | B2 | =PROPER(SUBSTITUTE(LEFT(A2,FIND("@",A2)-1),"."," ")) |