Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 385
Default Adding a new row is messing up my SUMPRODUCT

I am using SUMPRODUCT to calculate across 30 different spreadsheets. I
finally have it working so that it will go to a spreadsheet and lookup an
identifier and return a value assocated with that identifier. The problem is
if I add a new row to one of the sheets, it messes up my summary page. I
have even ensured the new row has the correct data and no blanks. What can I
do to protect the SUMPRODUCT even if I add a new row to a spreadsheet

Here's a sample of my formula
Formula lives on Summary and I add a new row to '1251 Beta' sheet

=SUMPRODUCT(('1251 Beta'!$B$10:$B$38='RESOURCE ALLOCATION'!$B61)*('1251
Beta'!C$10:C$38))

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Adding a new row is messing up my SUMPRODUCT

Maybe

=SUMPRODUCT(SUMIF(INDIRECT("'1251 Beta'!$B$10:$B$38"),'RESOURCE
ALLOCATION'!$B61)*(INDIRECT("'1251 Beta'!C$10:C$38")))


--
__________________________________
HTH

Bob

"Jennifer" wrote in message
...
I am using SUMPRODUCT to calculate across 30 different spreadsheets. I
finally have it working so that it will go to a spreadsheet and lookup an
identifier and return a value assocated with that identifier. The problem
is
if I add a new row to one of the sheets, it messes up my summary page. I
have even ensured the new row has the correct data and no blanks. What
can I
do to protect the SUMPRODUCT even if I add a new row to a spreadsheet

Here's a sample of my formula
Formula lives on Summary and I add a new row to '1251 Beta' sheet

=SUMPRODUCT(('1251 Beta'!$B$10:$B$38='RESOURCE ALLOCATION'!$B61)*('1251
Beta'!C$10:C$38))



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Adding a new row is messing up my SUMPRODUCT

One obs. Based on your sample formula, any insertions of new rows uptill row
38 (the last row) would be auto-adjusted by Excel. You could extend the end
row to a "safe" point beyond which it is unlikely that new rows would be
inserted. Since sumproduct is calc-intensive, balance your estimation of that
safe point to be the smallest range which is large enough to cover. Any good?
hit the YES below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Jennifer" wrote:
I am using SUMPRODUCT to calculate across 30 different spreadsheets. I
finally have it working so that it will go to a spreadsheet and lookup an
identifier and return a value assocated with that identifier. The problem is
if I add a new row to one of the sheets, it messes up my summary page. I
have even ensured the new row has the correct data and no blanks. What can I
do to protect the SUMPRODUCT even if I add a new row to a spreadsheet

Here's a sample of my formula
Formula lives on Summary and I add a new row to '1251 Beta' sheet

=SUMPRODUCT(('1251 Beta'!$B$10:$B$38='RESOURCE ALLOCATION'!$B61)*('1251
Beta'!C$10:C$38))

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 385
Default Adding a new row is messing up my SUMPRODUCT

Max, thanks for the suggestion. I did move my last row to 99 but when I
inserted, it still gave my summary page NA's. My quick fix was when I
inserted a row, I'd go to the end (row 99) and delete a blank row. That in
return, fixed the summary page.

"Max" wrote:

One obs. Based on your sample formula, any insertions of new rows uptill row
38 (the last row) would be auto-adjusted by Excel. You could extend the end
row to a "safe" point beyond which it is unlikely that new rows would be
inserted. Since sumproduct is calc-intensive, balance your estimation of that
safe point to be the smallest range which is large enough to cover. Any good?
hit the YES below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Jennifer" wrote:
I am using SUMPRODUCT to calculate across 30 different spreadsheets. I
finally have it working so that it will go to a spreadsheet and lookup an
identifier and return a value assocated with that identifier. The problem is
if I add a new row to one of the sheets, it messes up my summary page. I
have even ensured the new row has the correct data and no blanks. What can I
do to protect the SUMPRODUCT even if I add a new row to a spreadsheet

Here's a sample of my formula
Formula lives on Summary and I add a new row to '1251 Beta' sheet

=SUMPRODUCT(('1251 Beta'!$B$10:$B$38='RESOURCE ALLOCATION'!$B61)*('1251
Beta'!C$10:C$38))

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
deleting rows messing up formulas Chad Excel Discussion (Misc queries) 2 January 30th 09 06:19 AM
Tab character is messing me up Some Dude Excel Discussion (Misc queries) 4 June 27th 06 11:43 PM
Sort without messing up formulas Ruth Excel Discussion (Misc queries) 3 January 26th 06 02:02 PM
Sort & add columns without messing up formulas kate Excel Worksheet Functions 3 August 8th 05 04:57 PM
Rows containing "#N/A" are messing with my formulas, please help Sam Excel Worksheet Functions 1 May 17th 05 04:47 PM


All times are GMT +1. The time now is 04:31 AM.

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

About Us

"It's about Microsoft Excel"