Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I hope there is such an expression to make my work simpler, easier, like this:

For total of cells in the same rows:
C#
Total    |     Column 1    |    Column 2    |    Column 3
 10               1                5                 4            //1 + 5 + 4 = 10
 20              10                8                 2            //10 + 8 + 2 = 20
...


Or for total of cells in the same columns:
C#
               Column 1    |    Column 2    |    Column 3
Total            16                9                 13
Row 1            1                 4                 5
Row 2            8                 3                 2
Row 3            7                 2                 6


Your help would be highly appreciated! If you know only one of two, please feel free to give an answer. Thank you very much in advance!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900