illmill 87 Posted July 28, 2012 Report Share Posted July 28, 2012 Okay, so what's the best way to get the sum of all items in a list. Let's say I have a list of 20k numerical values. Every list item (except for the first one is a column header since this is coming from a csv) is a number and I want to calculate the total of all those numbers. Thanks in advance for any tips you can offer! Quote Link to post Share on other sites
rotem 4 Posted July 28, 2012 Report Share Posted July 28, 2012 I think this should work, didnt test it though. set(#count, 0, "Global")set list position(%yourList, 1)loop($subtract($list total(%yourList), 1)) { set(#count, $add(#count, $next list item(%yourList)), "Global")} 2 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.