R
RichardO
Hi I have a sumproduct formula that keeps on shifting because when I ad
new data to the worksheet and then delete the old data, the # of row
in the sumproduct formula shifts.
I tried to use dynamic ranges but the rows are still shifting; probabl
because I am not doing it correctly.
My sumproduct formula is
=SUMPRODUCT((Sheet2!$L$2:$L$999="Amanda")*(Sheet2!$K$2:$K$999="Yes")*(Sheet2!$M$2:$M$999="due")).
Question: apart from inserting the number of rows of my new data in ro
2, would a dynamic range prevent row 999 of the sumproduct formula fro
shifting to say 800 if I add the new data to the last row of th
worksheet and then delete the data above it which is the old data (i.e
the cells shift up)?
Here is what I did to name the dynamic range.
I highlighted column L, insert/name/define
placed "name" in the Names in workbook
placed this formula in refers to:
=OFFSET(INDIRECT(Sheet2!$L$1),0,0,CountA(Sheet2!$L:$L),CountA(Sheet2!$1:$1))
clicked OK.
I did the same for column K & M giving them a different name an
changing L in the formula abbove to K or M. (is there a way to make al
the columns and rows in a worksheet dynamic without having to do eac
one column by column?) I tried that by selecting all the cells in m
worksheet, insert/name/define, put in this formula:
=OFFSET(INDIRECT(Sheet2!$A$1),0,0,CountA(Sheet2!$A:$A),CountA(Sheet2!$1:$1))
But still this didn't work because when I placed the new data in th
last row in my worksheet and then deleted the old data above it, th
sumproduct #row 999 is still shifting. Can someone please tell me wha
I am doing incorrectly?
Thank
new data to the worksheet and then delete the old data, the # of row
in the sumproduct formula shifts.
I tried to use dynamic ranges but the rows are still shifting; probabl
because I am not doing it correctly.
My sumproduct formula is
=SUMPRODUCT((Sheet2!$L$2:$L$999="Amanda")*(Sheet2!$K$2:$K$999="Yes")*(Sheet2!$M$2:$M$999="due")).
Question: apart from inserting the number of rows of my new data in ro
2, would a dynamic range prevent row 999 of the sumproduct formula fro
shifting to say 800 if I add the new data to the last row of th
worksheet and then delete the data above it which is the old data (i.e
the cells shift up)?
Here is what I did to name the dynamic range.
I highlighted column L, insert/name/define
placed "name" in the Names in workbook
placed this formula in refers to:
=OFFSET(INDIRECT(Sheet2!$L$1),0,0,CountA(Sheet2!$L:$L),CountA(Sheet2!$1:$1))
clicked OK.
I did the same for column K & M giving them a different name an
changing L in the formula abbove to K or M. (is there a way to make al
the columns and rows in a worksheet dynamic without having to do eac
one column by column?) I tried that by selecting all the cells in m
worksheet, insert/name/define, put in this formula:
=OFFSET(INDIRECT(Sheet2!$A$1),0,0,CountA(Sheet2!$A:$A),CountA(Sheet2!$1:$1))
But still this didn't work because when I placed the new data in th
last row in my worksheet and then deleted the old data above it, th
sumproduct #row 999 is still shifting. Can someone please tell me wha
I am doing incorrectly?
Thank