#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default SUMPRODUCT

Hi

I'm trying to do an advanced lookup that matches 3 criterias
so, i though i could use SUMPRODUCT

but the formula
=--(SUMPRODUCT((Ref!CX2:CX1069=Prog!J5)*(Ref!CY2:CY10 69=Prog!K5)*(Ref!DA2:DA1069=Prog!M5)*(Ref!DB2:DB10 69)))

returns a #VALUE!

the "calc steps" shows that the problem occurs prior the last calculation

column DB contains text and numbers
and i want/need to show that way


any ideas??


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default SUMPRODUCT

column DB contains text and numbers

Lightly tested here, this seems to work ok:
=SUMPRODUCT((ref!CX2:CX1069=prog!J5)*(ref!CY2:CY10 69=prog!K5)*(ref!DA2:DA1069=prog!M5)*ISNUMBER(ref! DB2:DB1069),ref!DB2:DB1069)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"Alonso" wrote:
I'm trying to do an advanced lookup that matches 3 criterias
so, i though i could use SUMPRODUCT

but the formula
=--(SUMPRODUCT((Ref!CX2:CX1069=Prog!J5)*(Ref!CY2:CY10 69=Prog!K5)*(Ref!DA2:DA1069=Prog!M5)*(Ref!DB2:DB10 69)))

returns a #VALUE!

the "calc steps" shows that the problem occurs prior the last calculation

column DB contains text and numbers
and i want/need to show that way


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default SUMPRODUCT

you should not need the isnumber
=SUMPRODUCT((ref!CX2:CX1069=prog!J5)*(ref!CY2:CY10 69=prog!K5)*(ref!DA2:DA1069=prog!M5),ref!DB2:DB106 9)

"Max" wrote:

column DB contains text and numbers


Lightly tested here, this seems to work ok:
=SUMPRODUCT((ref!CX2:CX1069=prog!J5)*(ref!CY2:CY10 69=prog!K5)*(ref!DA2:DA1069=prog!M5)*ISNUMBER(ref! DB2:DB1069),ref!DB2:DB1069)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"Alonso" wrote:
I'm trying to do an advanced lookup that matches 3 criterias
so, i though i could use SUMPRODUCT

but the formula
=--(SUMPRODUCT((Ref!CX2:CX1069=Prog!J5)*(Ref!CY2:CY10 69=Prog!K5)*(Ref!DA2:DA1069=Prog!M5)*(Ref!DB2:DB10 69)))

returns a #VALUE!

the "calc steps" shows that the problem occurs prior the last calculation

column DB contains text and numbers
and i want/need to show that way


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default SUMPRODUCT

you should not need the isnumber

Yes, you're right. It was overkill. Thanks.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default SUMPRODUCT

Well
now instead of a #VALUE!
i get a zero 0

again
it seems that the error is somewhere the last calculation




"JMB" wrote:

you should not need the isnumber
=SUMPRODUCT((ref!CX2:CX1069=prog!J5)*(ref!CY2:CY10 69=prog!K5)*(ref!DA2:DA1069=prog!M5),ref!DB2:DB106 9)




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default SUMPRODUCT

Is all of column DB formatted as text? Locate a number in column DB and use
Isnumber(cellref) in an adjacent empty cell. What do you get? If the
numeric values in column DB are actually text, sumproduct will return 0. I
was assuming column DB was formatted as general and contained both text and
numeric data.


"Alonso" wrote:

Well
now instead of a #VALUE!
i get a zero 0

again
it seems that the error is somewhere the last calculation




"JMB" wrote:

you should not need the isnumber
=SUMPRODUCT((ref!CX2:CX1069=prog!J5)*(ref!CY2:CY10 69=prog!K5)*(ref!DA2:DA1069=prog!M5),ref!DB2:DB106 9)


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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
Need help with SUMPRODUCT Bob Excel Worksheet Functions 2 August 15th 07 04:20 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
sumproduct help Jim Excel Worksheet Functions 2 January 20th 06 01:49 PM
=SUMPRODUCT Jim Excel Worksheet Functions 9 January 17th 06 04:52 PM


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