Jonathan1726
New Member
- Joined
- Aug 27, 2019
- Messages
- 2
Hello Guys, here is the situation:
I created a formula to extract the date on a string of text from any position, and I used the IF function to show the same value is the Date is not in the text.
Here is the example:
FORMULA:
=TRIM(IF(ISERROR(SEARCH("/",B14)),B14,LEFT(B14,SEARCH("/",B14)-3))&" "&IF(ISERROR(SEARCH("/",B14)),B14,RIGHT(B14,LEN(B14)-SEARCH("/",B14)-5)))
<tbody>
</tbody>The problem is that because I used the & to join the results, it is repeating the results when it does not find a date on the text (see B17 Underlined). How can I fix this?
I created a formula to extract the date on a string of text from any position, and I used the IF function to show the same value is the Date is not in the text.
Here is the example:
FORMULA:
=TRIM(IF(ISERROR(SEARCH("/",B14)),B14,LEFT(B14,SEARCH("/",B14)-3))&" "&IF(ISERROR(SEARCH("/",B14)),B14,RIGHT(B14,LEN(B14)-SEARCH("/",B14)-5)))
Raw Data | Clean Data |
B14- Jose $250 12/06/16 OTR | Jose $250 OTR |
B15- 250 Josefa otr 1/05/29 Mac | 250 Josefa otr Mac |
B16- 12/25/89 OTR Windows $152 | OTR Windows $152 |
B17- Ana OTR Windows $152 | Ana OTR Windows $152 Ana OTR Windows $152 |
<tbody>
</tbody>