Formula Adjustment

  • Thread starter Thread starter XLFanatico
  • Start date Start date
X

XLFanatico

=SUMPRODUCT(--($A$3:$A$3496="may")*($G$3:$G$3496="alexis")*($I$3:$I$3496={"visit","pending","services" ,"agreement"}))
This formula works very well.
However the 3rd part may (visit,pending,services,agreement) may change
by month, either adding another word or taking off for example "services",
or both.
The 3rd part of the formula (visit,pending,services...) is in a list(another
sheet),
I just took those words an assigned a range tha I called "myrange".
Q. Is it possible to insert "myrange" in this FORMULA in order to avoid
writting all the words everytime I do the update?
THANK YOU.
 
Say we have in A1 thru B10:

non-greek 1
alpha 1
beta 1
non-greek 1
non-greek 1
non-greek 1
non-greek 1
non-greek 1
non-greek 1
non-greek 1

Either formula:

=SUMPRODUCT((A1:A10=qwerty)*(B1:B10=1))
=SUMPRODUCT((A1:A10={"alpha","beta","gamma","delta"})*(B1:B10=1))

will product the same result: 2
if qwerty is a Defined Name:
={"alpha","beta","gamma","delta"}


The advantage to using the Defined Name is that only qwerty need be modified
rather than every formula that uses qwerty.
 
XLFanatico said:
=SUMPRODUCT(--($A$3:$A$3496="may")*($G$3:$G$3496="alexis")*($I$3:$I$3496={"vis
it","pending","services" ,"agreement"}))
This formula works very well.
However the 3rd part may (visit,pending,services,agreement) may change
by month, either adding another word or taking off for example "services",
or both.
The 3rd part of the formula (visit,pending,services...) is in a list(another
sheet),
I just took those words an assigned a range tha I called "myrange".
Q. Is it possible to insert "myrange" in this FORMULA in order to avoid
writting all the words everytime I do the update?
THANK YOU.

Try...

=SUMPRODUCT(--($A$3:$A$3496="may"),--($G$3:$G$3496="alexis"),--ISNUMBER(M
ATCH($I$3:$I$3496,MyRange,0)))
 
Yes it works good.
Thanks.

Domenic said:
Try...

=SUMPRODUCT(--($A$3:$A$3496="may"),--($G$3:$G$3496="alexis"),--ISNUMBER(M
ATCH($I$3:$I$3496,MyRange,0)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top