Hi
I was wondering if someone could help me with a formula I am having a hard time coming up with:
I have an excel sheet with various recipient addresses. The recipient name column, say column A, will look something similar to "Ship to business #1584" or "Ship to business #1224" or "Jane Doe". I need to extract the 4 digits after # onto another column, say column C. I think I have the formula to that which is =REPLACE(A2,1,FIND("#",A2),"") . However, for all the recipient names that DO NOT have the text "ship to business", I need it to come back as 8119 in column C. How would I create that formula to extract the 4 digits but also include the 8119 if there is no business # on the recipient name? I included sample table below:
<tbody>
</tbody>
I appreciate any help!
Thank you
I was wondering if someone could help me with a formula I am having a hard time coming up with:
I have an excel sheet with various recipient addresses. The recipient name column, say column A, will look something similar to "Ship to business #1584" or "Ship to business #1224" or "Jane Doe". I need to extract the 4 digits after # onto another column, say column C. I think I have the formula to that which is =REPLACE(A2,1,FIND("#",A2),"") . However, for all the recipient names that DO NOT have the text "ship to business", I need it to come back as 8119 in column C. How would I create that formula to extract the 4 digits but also include the 8119 if there is no business # on the recipient name? I included sample table below:
recipient name (column A) | recipient address (column B) | identifier (Column C) | |
Jane Doe | 123 Hello Panda Lane | 8119 | |
C/O Business #1234 | 456 Kitty Paw Street | 1234 | |
C/O Business #2456 | 789 Chihiro Court | 2456 | |
Michael Smith | 7655 Forest Lane | 8119 |
<tbody>
</tbody>
I appreciate any help!
Thank you