Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct across mutliple sheets - deleting row in one sheet

So I spend 3 months building the most beautiful spreadsheets in the history
of humanity, then a user goes and breaks it. Here's the problem - it's about
deleting rows when you have a SUMPRODUCTs that span multiple sheets. on
those named ranges go all N/A

Let's say I have a SUMPRODUCT that spans different sheets

=SUMPRODUCT((Sheet1!C1:C10)*(Sheet2!C1:C10))


Now here's the rub : Let's say a user deletes row 5 in Sheet1. The
sumproduct then adjusts itself to

=SUMPRODUCT((Sheet1!C1:C9)*(Sheet2!C1:C10))

And proceeds to go the shape of a pear, giving out only a solitary splutter
of N/A.

Any suggestions for how I can avoid this? All I can think of is not allowing
the deletion of rows by protecting sheets...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Sumproduct across mutliple sheets - deleting row in one sheet

Hi,

Try this.

=SUMPRODUCT((INDIRECT("Sheet1!C1:C10")*(INDIRECT(" Sheet2!C1:C10"))))

And don't worry you won't have to wait long before they find another way of
destroying your worksheet!!
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"StephenT" wrote:

So I spend 3 months building the most beautiful spreadsheets in the history
of humanity, then a user goes and breaks it. Here's the problem - it's about
deleting rows when you have a SUMPRODUCTs that span multiple sheets. on
those named ranges go all N/A

Let's say I have a SUMPRODUCT that spans different sheets

=SUMPRODUCT((Sheet1!C1:C10)*(Sheet2!C1:C10))


Now here's the rub : Let's say a user deletes row 5 in Sheet1. The
sumproduct then adjusts itself to

=SUMPRODUCT((Sheet1!C1:C9)*(Sheet2!C1:C10))

And proceeds to go the shape of a pear, giving out only a solitary splutter
of N/A.

Any suggestions for how I can avoid this? All I can think of is not allowing
the deletion of rows by protecting sheets...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Sumproduct across mutliple sheets - deleting row in one sheet

Stop them deleting the rows (protect the sheet)!

Or use

=SUMPRODUCT((OFFSET(Sheet1!C1,0,0,10,1))*(OFFSET(S heet2!C1,0,0,10,1)))

--

HTH

Bob

"StephenT" wrote in message
...
So I spend 3 months building the most beautiful spreadsheets in the
history
of humanity, then a user goes and breaks it. Here's the problem - it's
about
deleting rows when you have a SUMPRODUCTs that span multiple sheets. on
those named ranges go all N/A

Let's say I have a SUMPRODUCT that spans different sheets

=SUMPRODUCT((Sheet1!C1:C10)*(Sheet2!C1:C10))


Now here's the rub : Let's say a user deletes row 5 in Sheet1. The
sumproduct then adjusts itself to

=SUMPRODUCT((Sheet1!C1:C9)*(Sheet2!C1:C10))

And proceeds to go the shape of a pear, giving out only a solitary
splutter
of N/A.

Any suggestions for how I can avoid this? All I can think of is not
allowing
the deletion of rows by protecting sheets...



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
Sumproduct across mutliple columns JANA Excel Worksheet Functions 3 January 25th 10 04:39 AM
Mutliple Sumproduct criteria PJFry Excel Worksheet Functions 1 July 24th 09 01:08 AM
MATCH() or VLOOKUP() across mutliple 65K sheets possible? [email protected] Excel Discussion (Misc queries) 4 July 25th 08 05:06 AM
Auto filling cells across mutliple sheets Alec H Excel Discussion (Misc queries) 5 February 6th 06 02:39 PM
deleting sheets KLP Excel Discussion (Misc queries) 3 January 14th 05 12:24 AM


All times are GMT +1. The time now is 05:28 PM.

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"