Getting this error *BC30198: ‘)’ expected* on write cell with vlookup

Hi all,

I am trying to write an excel formula using write cell activity in UiPath (within Excel Scope Activity). However I am getting this error BC30198: ‘)’ expected
I tested my formula in Excel and it works.

My formula :=IFERROR(VLOOKUP(A2,‘[Source1Excel. sheet.xlsx]Sheet1’!$A:$B,2,FALSE),“NOT FOUND”)

Hi @xiaozhuang-susan.wei

Give that formula in double quotes.

“=IFERROR(VLOOKUP(A2,‘[Source1Excel. sheet.xlsx]Sheet1’!$A:$B,2,FALSE),“NOT FOUND”)”

Regards,

yep, I’ve done that still same.

Hi @xiaozhuang-susan.wei

Welcome to Community!

Try this

formula = “=IFERROR(VLOOKUP(A2,‘[Source1Excel. sheet.xlsx]Sheet1’!$A:$B,2,FALSE),”“NOT FOUND”“)”

@xiaozhuang-susan.wei

Try this:

“=IFERROR(VLOOKUP(A2,‘[Source1Excel. sheet.xlsx]Sheet1’!$A:$B,2,FALSE),”“Not FOUND”“)”

Regards,

@xiaozhuang-susan.wei

Are you tried this? It is working. Please try this.

Hi @xiaozhuang-susan.wei

When you are giving the value or formula in write cell activity fields you have to give in between double quotes. You just forget to give the formula with in double quotes.
Give a try to give the formula with in double quotes in the write cell activity.

"=IFERROR(VLOOKUP(A2,‘[Source1Excel. sheet.xlsx]Sheet1’!$A:$B,2,FALSE),“NOT FOUND”)"

Copy and paste the above one in the Write cell activity.

Hope it helps!!

Great! That’s work, thank you!

@xiaozhuang-susan.wei

Please mark as solution to close the thread.

Regards,

@xiaozhuang-susan.wei
Please mark as solution to close the loop.

Happy Automation.
Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.