Error when applying formula to Excel help

I used this code to concatenate cells, but it resulted in an error. Is there a way to use this code correctly?
Thank you in advance for your response!

Hi @22222222asas ,
You want to merge string of value many cell
change & to +
eg:
row(“A”).toString + row(“B”).toString +…
regards,

1 Like

@22222222asas
Need to use ‘+’ for concatenation instead of ‘&’

1 Like

@Nguyen_Van_Luong1

Thank you so much for your answer.
I’m adding a formula to Excel, but for text connection, “=A2+”+A3" is also a problem?

@pravallikapaluri
Thank you so much for your answer.
I’m adding a formula to Excel, but for text connection, “=A2+”+A3" is also a problem?

Have you tried
“=A2+A3”
regards,

1 Like

@Nguyen_Van_Luong1
I have to put a space between the letters. Is there any possible way?
image

@22222222asas

Excel.Sheet("Sheet1").Cell("B2")+"  "+Excel.Sheet("Sheet1").Cell("C2")

1 Like

Could you share your file and expect output
or formula by handwork
regards,

1 Like

@pravallikapaluri

image
An error occurs if I use the write cell, is there a way to write it down?

I would like to do it in this way. Could you help me?

@22222222asas

Excel.Sheet("Sheet1").Cell("B3").ToString+" "+Excel.Sheet("Sheet1").Cell("B4").ToString

1 Like

Hi @22222222asas
If you use classic activity
image


regards,

1 Like

@Nguyen_Van_Luong1


May I know the reason for the error?

Could you show your message error
Excel.zip (9.0 KB)
my source
regards,

1 Like

For Each Row in Data Table: Object reference not set to an instance of an object
The error message is this. Thank you.

Hi @22222222asas ,
You can check
read range has header

then in assign activity use header
image

regards,

1 Like

@Nguyen_Van_Luong1
Thank you very much. I have resolved it with your response! I have one more question remaining. Should I create a new question for that? Once again, I’m in awe of your assistance

1 Like

@pravallikapaluri
Thank you very much for your help It was more helpful because you let me know simply. Thank you! Have a great day!

Yes, if you have any questions, please ask me
Cheer