Greetings,
I am having a bit of trouble with my code. I am using the average function to find the average of the contents in a set of cells in a column. The function in the cell that contains the average function is =AVERAGE($H$5:$H$200).
When I run my code periodically I add a new row and a new number comes in at the top. When I get the new row of data the AVERAGE function in the cell described above changes to =AVERAGE($H$6:$H$201). I would like to continue to find the average for the most recent set of cells and not have the cells shift on me. I thought the absolute reference would accomplish this...apparently not. Any advice is appreciated.
I am having a bit of trouble with my code. I am using the average function to find the average of the contents in a set of cells in a column. The function in the cell that contains the average function is =AVERAGE($H$5:$H$200).
When I run my code periodically I add a new row and a new number comes in at the top. When I get the new row of data the AVERAGE function in the cell described above changes to =AVERAGE($H$6:$H$201). I would like to continue to find the average for the most recent set of cells and not have the cells shift on me. I thought the absolute reference would accomplish this...apparently not. Any advice is appreciated.