开发者

Find maximum number in discrete groups in spreadsheet

开发者 https://www.devze.com 2023-01-08 22:52 出处:网络
I have a list of numbers, each group of numbers is separated from the other group by the number zero \"0\" or many zeros. I would like excel to get the maximum 开发者_StackOverflow社区number of each g

I have a list of numbers, each group of numbers is separated from the other group by the number zero "0" or many zeros. I would like excel to get the maximum 开发者_StackOverflow社区number of each group and post it in a cell automatically.


I'd have to agree with the Pivot Table approach as a quick win. Either that or a small amount VBA that itterates through your list defining the active block of numbers and then finding the max in that section.

It shouldn't be too hard to code. Perhaps post some sample data?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号