Thread
:
SumProduct with more than 1 selection
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
SumProduct with more than 1 selection
),--(Zinvest={"A","b","c"}),
--
Don Guillett
SalesAid Software
wrote in message
ups.com...
Hi all,
I am using the following formular which works fine.
The Z... are named ranges of columns.
=SUMPRODUCT(--(Zmth="APR"),--(Zbuscode=18),--(Zinvest="A"),Zamt)
But If I want to select a number of additional selections to Zinvest in
the same column
e.g. A, B, C
I seem to be getting a problem.
Tried this which resulted in Zero.
=SUMPRODUCT(--(Zmth=B2),--(Zbuscode=18),--(Zinvest="A"),--(Zinvest="B"),--(Zinvest="C"),Zamt)
Also tried this which resulted in #VALUE
=SUMPRODUCT(--(Zmth=B2),--(Zbuscode=18),--OR(--(Zinvest="A"),--(Zinvest="B"),--(Zinvest="C")),Zamt)
Any Suggestions?
Many Thanks
TW
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett