Sum of Cells next to a String
显示 更早的评论
Hi all,
I imported an excel sheet of numbers next to a string (a category) in an array and having trouble finding a way to get the sum of all the numbers under a category. For example:

Let's say I want the sum of all the numbers to the right of 'VLGMC' and 'DLG'. Is there a way I could do this?
Thanks,
Tony
采纳的回答
更多回答(1 个)
Image Analyst
2015-4-4
0 个投票
Try using readtable() then summing the column(s). I'd have done a little for you but you forgot to attach your workbook.
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!