Sum of Cells next to a String
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 4 de Abr. de 2015
0 votos
Try using readtable() then summing the column(s). I'd have done a little for you but you forgot to attach your workbook.
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!