Addition of Two Cells in Excel

Hello!
I read an excel file.
Then what I want is add column 1 and column 2.
Example: 2 + 2 = 4
Instead, I get 22. It is combined.

Hello @AlyannaDJ,
Welcome to the community!
Please try Convert.ToInt32(row(“columnName”).ToString) + Convert.ToInt32(row(“columnName”).ToString)
Please see the Convert.ToInt32 method documentation below:

Thanks and regards.

13 Likes

Thank you Jan. It worked!

2 Likes

Good to hear that!
Please mark my answer as the solution to close this topic and help others who are encountering this problem. Thank you!

4 Likes

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