so I have the following formula:
where x and y are numbers I have entered.
However, I want the numbers in the above formula to be determined by the values in another cell (let’s say the x to be determined by the value in cell A1, and the y to be determined by the value in cell A2). So if A1 contained 3 and A2 contained 5 then the formula would be =sumif(G3:G5,50,P3:P5). How would I go about doing this? Thanks
You can do this with a combination of
The formula in F6 below is:
You could use OFFSET
You probably want some handling to ensure X<=Y.
That might look like: