Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Sumproduct absolute cell references

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sumproduct absolute cell references

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Sumproduct absolute cell references

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Sumproduct absolute cell references

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Sumproduct absolute cell references

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Sumproduct absolute cell references

=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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
Cell Absolute $ References Keep Changing themselves MarcP Excel Discussion (Misc queries) 4 September 7th 07 03:54 PM
Absolute references in a cell Glennk Excel Discussion (Misc queries) 1 January 23rd 07 03:28 PM
Absolute References in cell formula ah666 Excel Worksheet Functions 5 June 17th 05 03:40 PM
Absolute cell references and subsequent problems. Pank Mehta Excel Discussion (Misc queries) 2 April 19th 05 11:38 AM


All times are GMT +1. The time now is 10:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"