Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
A. Gallardo
 
Posts: n/a
Default Sumproduct #N/A! error issue

I have not been able to find the answer after a while searching for it
so here is my question:

I am using the sumproduct function for calculating subtotals in 2
corporate worksheets dealing with production data and with the
Information Systems user requests database. The two sheets are working
fine. One of them imports data from sql server and the other from
access.

My problem is that when I refresh the data the references of the
sumproduct formule change but not all. Here is an example:

=SUMPRODUCT((BBDDTareas!$AA$2:$AA$5000)*(BBDDTarea s!$H$2:$H$5041
EstadisticasGenerales!E3)*(BBDDTareas!$F$2:$F$504 1

<EstadisticasGenerales!E3))+SUMAPRODUCTO((BBDDTare as!$AB$2:$AB$5000)
*(BBDDTareas!$F$2:$F$5041<EstadisticasGenerales!E3 ))

As you see, the parts with the condition change range (in this case
from rows range 2:5000 prior to the data update to range 2:5041) but
not in the part with the data that actually sum data (the first one).
This leads to an #N/A! error.

I guess this is a really basic issue but I cannot find how to get rid
of it. Thank in advance for anyone that can help.

A. Gallardo

  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default Sumproduct #N/A! error issue

Hi

Define ranges on sheet BBDDTareas as dynamic ones - with same column as
conditional one for all of them. Like
Range1=BBDDTareas!$F$1,1,,COUNTA(BBDDTareas!$F:$F)-1,1)
Range2=BBDDTareas!$H$1,1,,COUNTA(BBDDTareas!$F:$F)-1,1)
Range3=BBDDTareas!$AB$1,1,,COUNTA(BBDDTareas!$F:$F )-1,1)

Now your formula will be like
=SUMPRODUCT(Range3,--(Range2EstadisticasGenerales!E3),--(Range1<EstadisticasGenerales!E3))+SUMPRODUCT(Rang e3,--(Range1<EstadisticasGenerales!E3))--Arvi Laanemets( My real mail address: arvil<attarkon.ee )"A. Gallardo" wrote in oglegroups.com...I have not been able to find the answer after a while searching for it so here is my question: I am using the sumproduct function for calculating subtotals in 2 corporate worksheets dealing with production data and with the Information Systems user requests database. The two sheets are working fine. One of them imports data from sql server and the other from access. My problem is that when I refresh the data the references of the sumproduct formule change but not all. Here is an example: =SUMPRODUCT((BBDDTareas!$AA$2:$AA$5000)*(BBDDTarea s!$H$2:$H$5041EstadisticasGenerales!E3)*(BBDDTar eas!$F$2:$F$5041 <EstadisticasGenerales!E3))+SUMAPRODUCTO((BBDDTare as!$AB$2:$AB$5000) *(BBDDTareas!$F$2:$F$5041<EstadisticasGenerales!E3 )) As you see, the parts with the condition change range (in this case from rows range 2:5000 prior to the data update to range 2:5041) but not in the part with the data that actually sum data (the first one). This leads to an #N/A! error. I guess this is a really basic issue but I cannot find how to get rid of it. Thank in advance for anyone that can help. A. Gallardo

  #3   Report Post  
A. Gallardo
 
Posts: n/a
Default Sumproduct #N/A! error issue

Thanks a lot. After some test and fix, I have the sheet finally working
properly. Your solution works fine.

A. Gallardo

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 Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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

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"