Either me or you didn't understand.
Have a look on what I wrote as second formula:
Formula:
=AVERAGEIFS(B:B,A:A,">="&C1,A:A,"<"&C1+1)
it averages cells from column B for which neighboring cell (in column A) falls within a criterion (between value C1 asn C1+1).
Anyway, as the problem has already been solved in C# it's info just for your/someone else browsing the thread.
(hope that C# sub was a part of some other data processing - otherwise ... we have such a proverb/saying in Polish: "strzelać z armaty do wróbla" - translating directly it is to "fire a cannon on a sparrow" and rough equivalent: "take a sledgehammer to crack a nut")
Bookmarks