sujittalukde
Well-known Member
- Joined
- Jun 2, 2007
- Messages
- 520
I am importing data from our accounting software and extracting certain data from one field called “Narration” by using the fllowing formula.
=MID(E2,FIND("to",E2,1)+3,(FIND("as",E2,1)-(FIND("to",E2,1)+3)))
Now in certain cases instead of “as”, two more words is used viz “towards” or “twds”
If the txt contains these two words, the above formula gives an error.
So I want to incorporate the same into one formula so that error does not come and the formula should give correct result whether the text contains “as”, “towards” or “twds”.
=MID(E2,FIND("to",E2,1)+3,(FIND("as",E2,1)-(FIND("to",E2,1)+3)))
Now in certain cases instead of “as”, two more words is used viz “towards” or “twds”
If the txt contains these two words, the above formula gives an error.
So I want to incorporate the same into one formula so that error does not come and the formula should give correct result whether the text contains “as”, “towards” or “twds”.