Jul 31 2019 02:41 PM
Hi, I am trying to create a formula that takes in a range of cells and averages the cells in that range that have a value >=0% and row number >= a number stored in another cell. Is this possible? I am trying to make use of averageif(s) function, but can not figure out how to make use of the row() function nested within. Really appreciate the help!
Jul 31 2019 06:45 PM
My recommendation for you to get an answer is to provide sample data in an Excel file.
Aug 01 2019 01:03 AM
If your data is in column A and row number to start is in C1, when like
=AVERAGEIF(INDEX(A:A,$C$1):A1000,">=0")
assuming you are within 1000 rows range
Aug 01 2019 01:46 AM
SolutionIt would be best if you store your variables in Cells. For example, if the values are in Column A, the Start Row is stored in C2, End Row in C3, and Percent in C4, then the formula to return your desired result would be:
=AVERAGEIF(INDEX(A:A,C2):INDEX(A:A,C3),
">="&C4)
Aug 05 2019 09:42 AM
@Sergei Baklan Thank you! This is perfect
Aug 05 2019 09:43 AM
@Twifoo Awesome, thank you so much!
Aug 05 2019 10:56 AM
Aug 01 2019 01:46 AM
SolutionIt would be best if you store your variables in Cells. For example, if the values are in Column A, the Start Row is stored in C2, End Row in C3, and Percent in C4, then the formula to return your desired result would be:
=AVERAGEIF(INDEX(A:A,C2):INDEX(A:A,C3),
">="&C4)