on 05-25-2016 1:44 PM
Hi Guys,
I have a column as such in a report:
45 L, xyz, abx, alalalalalalla
740 L, abcd, hyr, alspdifkala;
2050 L, adl, pzs, prajdlap
I need to remove all data after that 3rd comma.
45 L, xyz, abx
740 L, abcd, hyr
2050 L, adl, pzs
Can anyone help?
Thanks
Use this.
in the formula Value is the object which have all values.
=Substr([Value];1;Pos([Value];",")+1)+Substr([Value];(Pos([Value];",")+1);Pos(Substr([Value];(Pos([Value];",")+1);Length([Value]));",")+1)+Substr([Value];Length(Substr([Value];1;Pos([Value];",")+1)+Substr([Value];(Pos([Value];",")+1);Pos(Substr([Value];(Pos([Value];",")+1);Length([Value]));",")+1));Pos([Value];",")-2)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will give you the required output
[Pos1]=Pos([Text];";")
[Pos2]=Pos(Substr([Text];[Pos1]+1;Length([Text]));";")
[Pos3]=Pos(Substr([Text];([Pos1]+[Pos2])+1;Length([Text]));";")
[Final]=Substr([Text];1;([Pos1]+[Pos2]+[Pos3])-1)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.