Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default formula range doesn't update for new rows

I have a workbook with multiple sheets. Some sheets contain imported data
and some contain sumproduct formulas referencing the data. When the data is
refreshed, the formulas all return #N/A values. The range in the formula is
not being updated to reflect the new rows that have been added when the data
sheets are refreshed. This does not happen consistently, but it is
frustrating. It is easy enough to find and replace the incorrect numbers,
but it repeats the same pattern again when the data is refreshed.

=(SUMPRODUCT((Expense!$B$2:$B$5874=$C$2)*(Expense! $C$2:$C$5874=$C$3)*(Expense!$W$2:$W$5828=$A6)*(Exp ense!$M$2:$M$5874)))

5784 is the correct value and 5828 is the incorrect value.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default formula range doesn't update for new rows

Think you can use INDIRECT to always point to fixed ranges
Eg: =SUMPRODUCT((INDIRECT("Expense!B2:B5874")=$C$2)*.. .)
Wrap the INDIRECT for all the other ranges involved in your expression. Note
that within Indirect you can drop the $ signs since its a text string. voila?
hit YES below
--
Max
Singapore
---
"lharp21" wrote:
I have a workbook with multiple sheets. Some sheets contain imported data
and some contain sumproduct formulas referencing the data. When the data is
refreshed, the formulas all return #N/A values. The range in the formula is
not being updated to reflect the new rows that have been added when the data
sheets are refreshed. This does not happen consistently, but it is
frustrating. It is easy enough to find and replace the incorrect numbers,
but it repeats the same pattern again when the data is refreshed.

=(SUMPRODUCT((Expense!$B$2:$B$5874=$C$2)*(Expense! $C$2:$C$5874=$C$3)*(Expense!$W$2:$W$5828=$A6)*(Exp ense!$M$2:$M$5874)))

5784 is the correct value and 5828 is the incorrect value.

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
How can I get a drop down to update the range of a formula nir020 Excel Worksheet Functions 3 May 6th 09 01:13 PM
How do I enter a formula that will update as more rows are added? ChuckT12624 Excel Worksheet Functions 3 October 25th 08 05:05 AM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
how do you get a formula to not update when rows are inserted Richard Excel Discussion (Misc queries) 2 May 30th 06 06:52 PM
Formula doesn't update when rows are inserted arreferee Excel Worksheet Functions 2 April 12th 06 04:53 PM


All times are GMT +1. The time now is 04:25 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"