#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Formula Adjustment

=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.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula Adjustment

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.
--
Gary''s Student - gsnu200851


"XLFanatico" wrote:

=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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default Formula Adjustment

In article ,
XLFanatico wrote:

=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)))

--
Domenic
http://www.xl-central.com
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Formula Adjustment

Yes it works good.
Thanks.

"Domenic" wrote:

In article ,
XLFanatico wrote:

=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)))

--
Domenic
http://www.xl-central.com

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Formula Adjustment

Your formula is good, but is me doing something that's apparently wrong.

"Gary''s Student" wrote:

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.
--
Gary''s Student - gsnu200851


"XLFanatico" wrote:

=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.

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
Formula Auto-Adjustment robot[_3_] New Users to Excel 1 January 7th 09 07:09 AM
Using Cell Data as adjustment to formula references Gadgetgw Excel Worksheet Functions 2 October 6th 08 01:42 AM
Formula Adjustment? DaveAsh Excel Worksheet Functions 2 November 14th 07 03:24 PM
formula adjustment Candace Excel Worksheet Functions 2 November 3rd 07 10:02 PM
Formula Adjustment - Help Josh O. Excel Worksheet Functions 1 January 24th 07 02:58 PM


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