Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I need to make the following formula "completely" absolute in it's cell references. =SUMPRODUCT(('Analysis Working'!$Y$2:$Y$2100="A")*('Analysis Working'!$C$2:$C$2100="Accounting & Legal")) I am currently running a macro on the sheet it refers to that deletes lines. Each time I run it the formula shanges the range. I have tried whole columns and found that doesn't work with SUMPRODUCT, nor does INDIRECT. Any suggestions would be greatly appreciated. Thanks Judy |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Perhaps you could encode the formula within the macro so that it will
always cover up to row 2100, and then just re-instate it after you delete those rows. Alternatively, if you count how many rows you delete, (lets say 6, so that the end range is 2094) then within the macro you could do a search/replace and change $2094 back to $2100. Hope this helps. Pete On Jul 4, 1:34*am, Judy wrote: Hi, I need to make the following formula "completely" absolute in it's cell references. =SUMPRODUCT(('Analysis Working'!$Y$2:$Y$2100="A")*('Analysis Working'!$C$2:$C$2100="Accounting & Legal")) I am currently running a macro on the sheet it refers to that deletes lines. *Each time I run it the formula shanges the range. *I have tried whole columns and found that doesn't work with SUMPRODUCT, nor does INDIRECT. Any suggestions would be greatly appreciated. Thanks Judy |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Jul 3, 8:34*pm, Judy wrote:
Hi, I need to make the following formula "completely" absolute in it's cell references. =SUMPRODUCT(('Analysis Working'!$Y$2:$Y$2100="A")*('Analysis Working'!$C$2:$C$2100="Accounting & Legal")) I am currently running a macro on the sheet it refers to that deletes lines. *Each time I run it the formula shanges the range. *I have tried whole columns and found that doesn't work with SUMPRODUCT, nor does INDIRECT. Any suggestions would be greatly appreciated. Thanks Judy could try entering as an array formula referencing entire columns. =SUM( ('Analysis Working'!Y:Y = "A")*('Analysis Working'!C:C = "Accounting & Legal") ) (ctrl-shift-enter) |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Jul 3, 8:51*pm, recrit wrote:
On Jul 3, 8:34*pm, Judy wrote: Hi, I need to make the following formula "completely" absolute in it's cell references. =SUMPRODUCT(('Analysis Working'!$Y$2:$Y$2100="A")*('Analysis Working'!$C$2:$C$2100="Accounting & Legal")) I am currently running a macro on the sheet it refers to that deletes lines. *Each time I run it the formula shanges the range. *I have tried whole columns and found that doesn't work with SUMPRODUCT, nor does INDIRECT. Any suggestions would be greatly appreciated. Thanks Judy could try entering as an array formula referencing entire columns. =SUM( ('Analysis Working'!Y:Y = "A")*('Analysis Working'!C:C = "Accounting & Legal") ) (ctrl-shift-enter) correction: SUM( (if('Analysis Working'!Y:Y = "A", 1, 0)*(if('Analysis Working'! C:C ="Accounting & Legal"), 1, 0) ) |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
At some expense in speed, you could refer to the two ranges as
offset('Analysis Working'!$Y$2,0,0,2099,1) and offset('Analysis Working'!$C$2,0,0,2099,1) "Judy" wrote: Hi, I need to make the following formula "completely" absolute in it's cell references. =SUMPRODUCT(('Analysis Working'!$Y$2:$Y$2100="A")*('Analysis Working'!$C$2:$C$2100="Accounting & Legal")) I am currently running a macro on the sheet it refers to that deletes lines. Each time I run it the formula shanges the range. I have tried whole columns and found that doesn't work with SUMPRODUCT, nor does INDIRECT. Any suggestions would be greatly appreciated. Thanks Judy |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMPRODUCT((INDIRECT("'Analysis
Working'!$Y$2:$Y$2100")="A")*(INDIRECT("'Analysis Working'!$C$2:$C$2100")="Accounting & Legal")) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Judy" wrote in message ... Hi, I need to make the following formula "completely" absolute in it's cell references. =SUMPRODUCT(('Analysis Working'!$Y$2:$Y$2100="A")*('Analysis Working'!$C$2:$C$2100="Accounting & Legal")) I am currently running a macro on the sheet it refers to that deletes lines. Each time I run it the formula shanges the range. I have tried whole columns and found that doesn't work with SUMPRODUCT, nor does INDIRECT. Any suggestions would be greatly appreciated. Thanks Judy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert relative cell references to absolute cell references via amacro? | Excel Discussion (Misc queries) | |||
Cell Absolute $ References Keep Changing themselves | Excel Discussion (Misc queries) | |||
Absolute references in a cell | Excel Discussion (Misc queries) | |||
Absolute References in cell formula | Excel Worksheet Functions | |||
Absolute cell references and subsequent problems. | Excel Discussion (Misc queries) |