Muralikrishnan
New Member
- Joined
- Mar 15, 2009
- Messages
- 20
Hi There,
I am applying a formula in excel and it is working fine. I am recording the macro with the formula and I am getting Syntax error. The formula is "=IF(RIGHT(TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))),1)=".",LEFT(TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))),(LEN(TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))))-1)),TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))))"
Appreciate someone's help to fix the issue in VBA.
Thanks in advance,
Muralikrishnan V
I am applying a formula in excel and it is working fine. I am recording the macro with the formula and I am getting Syntax error. The formula is "=IF(RIGHT(TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))),1)=".",LEFT(TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))),(LEN(TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))))-1)),TRIM(LEFT(F2,IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(FIND(".",F2,1),FIND(" @",F2,1)),FIND(" 0",F2,1)),FIND(" 1",F2,1)),FIND(" 2",F2,1)),FIND(" 3",F2,1)),FIND(" 4",F2,1)),FIND(" 5",F2,1)),FIND(" 6",F2,1)),FIND(" 7",F2,1)),FIND(" 8",F2,1)),FIND(" 9",F2,1)))))"
Appreciate someone's help to fix the issue in VBA.
Thanks in advance,
Muralikrishnan V