Hello, obviously this would be a simple average if formula but in this case I need to change the range to average based on the value of another cell. For example, if cell G9 = 2 then get the average of cells G13:G14 but if cell G9 = 3 then get the average of cells G13:G15. Can anyone help? Thanks!