A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

using indirect within a sum()



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2010, 03:20 PM posted to microsoft.public.excel.misc
Rick
external usenet poster
 
Posts: 727
Default using indirect within a sum()

Why do I get "Cannot find Project or Library"?

=SUM(P4:INDIRECT("P"&ROW()-1))
  #2  
Old March 24th, 2010, 03:28 PM posted to microsoft.public.excel.misc
Pete_UK
external usenet poster
 
Posts: 8,780
Default using indirect within a sum()

Try it this way:

=SUM(INDIRECT("P4:P"&ROW()-1))

Hope this helps.

Pete

On Mar 24, 3:20*pm, Rick wrote:
Why do I get "Cannot find Project or Library"?

=SUM(P4:INDIRECT("P"&ROW()-1))


  #3  
Old March 24th, 2010, 04:41 PM posted to microsoft.public.excel.misc
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default using indirect within a sum()

Why not just

=SUM($P$4:P???)

replace the ??? with the row -1 of the cell with the formula.


HTH,
Bernie
MS Excel MVP


"Rick" wrote in message
...
Why do I get "Cannot find Project or Library"?

=SUM(P4:INDIRECT("P"&ROW()-1))



  #4  
Old March 24th, 2010, 07:56 PM posted to microsoft.public.excel.misc
Rick
external usenet poster
 
Posts: 727
Default using indirect within a sum()

Thank Pete no more error messages,

"Pete_UK" wrote:

Try it this way:

=SUM(INDIRECT("P4:P"&ROW()-1))

Hope this helps.

Pete

On Mar 24, 3:20 pm, Rick wrote:
Why do I get "Cannot find Project or Library"?

=SUM(P4:INDIRECT("P"&ROW()-1))


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.