Say, I have a cell that has a number X (A1 = 5). Then I have an column B that has numbers, some of them are blanks. I need to calculate the average of the first X non blank numbers. How do I do that - Thanks in advance.
Example :
Cell A1 has 5.
Column B has,
1
2
Blank (actually blank, not the word)
3
Blank
4
5
Blank
Blank
6
7
8
Since the A1 has 5, I would only take the first 5 non blank values, (1, 2, blank, 3, blank, 4, blank, 5) and calculate the average as 15/ 5 = 3.
Thank you!
Bookmarks