Forum Discussion
syed_0001
Jun 25, 2024Copper Contributor
extracting car plate from cell
I have to extract car plate from bank reference column. there are more than 10000 lines per month. The position of the car plate in the string varies. The car plate has min of 5 and max 10 alphabet+ ...
syed_0001
Jun 25, 2024Copper Contributor
SergeiBaklan
Jun 25, 2024Diamond Contributor
- syed_0001Jun 26, 2024Copper Contributorthis works!
I had my colleague change the formula to use it vertically because my data is all in column A.
The only missing part is if the car plate is the first word, the formula does not detect it.
This is the formula i used:
=IF(LEN(A6)>100,TEXTBEFORE(TEXTAFTER(A6," ",-2,0,0)," ",-1,0,0),TEXTBEFORE(TEXTAFTER(A6,"/",2,0,0),"/",1))
How to adjust this formula to detect the carplate that is at the start of the string?- Tejas_shahJun 26, 2024Brass Contributor
- syed_0001Jun 26, 2024Copper ContributorTejas_shah
this works!
I had my colleague change the formula to use it vertically because my data is all in column A.
The only missing part is if the car plate is the first word, the formula does not detect it.
This is the formula i used:
=IF(LEN(A6)>100,TEXTBEFORE(TEXTAFTER(A6," ",-2,0,0)," ",-1,0,0),TEXTBEFORE(TEXTAFTER(A6,"/",2,0,0),"/",1))
How to adjust this formula to detect the carplate that is at the start of the string?