Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 145
Default Formula Problem. Anyone up for the challenge, lol?

I need a formula which looks at the following factors: (Column U) clients who
showed program improvement, (Column F) clients who were mandated to
treatemnt, (Column F) clients who had a mandated evaluaiton, and (Column Y)
clients who completed treatment. Please note that Column F has a drop down
menu with three options: mand, vol, Eval-Mand. The formula I have below
renders the outcome to be "0", so I know I ham missing something.:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand")*('Raw
Data'!$Y$4:$Y$5000="completed")


It may also be helpful to know that I originally had the formula only
looking at improvement for those who were mandated to treatment, and
completted, however I need to add in the additonal factor of those who were
mandated to have an evaluation. Again, both mandated to treatment, and
mandated to have an evaluation are "drop down" menu items in Column F. Any
help would be greatly appreciated.

Thanks in advance!

Dan



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Formula Problem. Anyone up for the challenge, lol?

On a quick look... that last term is being multiplied by the SUMPRODUCT...
it is not part of it, so the array range it contains is not being evaluated
by it. I think you may want this...

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand"),--('Raw
Data'!$Y$4:$Y$5000="completed"))

--
Rick (MVP - Excel)


"Dan the Man" wrote in message
...
I need a formula which looks at the following factors: (Column U) clients
who
showed program improvement, (Column F) clients who were mandated to
treatemnt, (Column F) clients who had a mandated evaluaiton, and (Column
Y)
clients who completed treatment. Please note that Column F has a drop down
menu with three options: mand, vol, Eval-Mand. The formula I have below
renders the outcome to be "0", so I know I ham missing something.:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand")*('Raw
Data'!$Y$4:$Y$5000="completed")


It may also be helpful to know that I originally had the formula only
looking at improvement for those who were mandated to treatment, and
completted, however I need to add in the additonal factor of those who
were
mandated to have an evaluation. Again, both mandated to treatment, and
mandated to have an evaluation are "drop down" menu items in Column F. Any
help would be greatly appreciated.

Thanks in advance!

Dan




  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Formula Problem. Anyone up for the challenge, lol?

Your problem is you have two *and* conditions for Column F. Column F cannot
be "Mand" and "Eval-Mand" at the same time. I assume you wanted an *or*
condition for column F? Col U has to be 0, Col F has to be either Mand or
Eval-Mand, and Col Y is "completed"?

If so, try:
=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--(('Raw
Data'!$F$4:$F$5000="Mand")+('Raw Data'!$F$4:$F$5000="Eval-Mand")0),--('Raw
Data'!$Y$4:$Y$5000="completed"))

Which could also be expressed
=SUMPRODUCT(('Raw Data'!$U$4:$U$50000)*('Raw
Data'!$F$4:$F$5000={"Mand","Eval-Mand"})*('Raw
Data'!$Y$4:$Y$5000="completed"))


"Dan the Man" wrote:

I need a formula which looks at the following factors: (Column U) clients who
showed program improvement, (Column F) clients who were mandated to
treatemnt, (Column F) clients who had a mandated evaluaiton, and (Column Y)
clients who completed treatment. Please note that Column F has a drop down
menu with three options: mand, vol, Eval-Mand. The formula I have below
renders the outcome to be "0", so I know I ham missing something.:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand")*('Raw
Data'!$Y$4:$Y$5000="completed")


It may also be helpful to know that I originally had the formula only
looking at improvement for those who were mandated to treatment, and
completted, however I need to add in the additonal factor of those who were
mandated to have an evaluation. Again, both mandated to treatment, and
mandated to have an evaluation are "drop down" menu items in Column F. Any
help would be greatly appreciated.

Thanks in advance!

Dan



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 145
Default Formula Problem. Anyone up for the challenge, lol?

Hey Rick, thank you for your suggestion. I forgot to mention that the
"Eval-Mand" clients are not tracked for improvement (only those identified as
"Mand" are). Sorry about forgetting that important piece.

Thus the array should be evaluating:

(a) Mandated clients who completed treatment and showed improvement, and

(b) Evaluation mandated clients who merely completed treatment.

When checking the math by hand I know that I have 222 mandated clients who
completed treatment and showed improvement, and 64 evaluation mandated
clients who completed treatment. Thus, my formula should result with a raw
score of 286. Again, I apologize for leaving that piece of critical
information out. I'm a bit of a "space case" today............Dan

"Rick Rothstein" wrote:

On a quick look... that last term is being multiplied by the SUMPRODUCT...
it is not part of it, so the array range it contains is not being evaluated
by it. I think you may want this...

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand"),--('Raw
Data'!$Y$4:$Y$5000="completed"))

--
Rick (MVP - Excel)


"Dan the Man" wrote in message
...
I need a formula which looks at the following factors: (Column U) clients
who
showed program improvement, (Column F) clients who were mandated to
treatemnt, (Column F) clients who had a mandated evaluaiton, and (Column
Y)
clients who completed treatment. Please note that Column F has a drop down
menu with three options: mand, vol, Eval-Mand. The formula I have below
renders the outcome to be "0", so I know I ham missing something.:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand")*('Raw
Data'!$Y$4:$Y$5000="completed")


It may also be helpful to know that I originally had the formula only
looking at improvement for those who were mandated to treatment, and
completted, however I need to add in the additonal factor of those who
were
mandated to have an evaluation. Again, both mandated to treatment, and
mandated to have an evaluation are "drop down" menu items in Column F. Any
help would be greatly appreciated.

Thanks in advance!

Dan





  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Formula Problem. Anyone up for the challenge, lol?

based on your follow up to Rick - do you want "Mand" clients who showed
improvement and completed the program plus "Eval-Mand" clients who completed
the program? You could try:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw
Data'!$Y$4:$Y$5000="completed"))+SUMPRODUCT(--('Raw
Data'!$F$4:$F$5000="Eval-Mand"),--('Raw Data'!$Y$4:$Y$5000="completed"))

although there may be a better or shorter way to do it
"JMB" wrote:

Your problem is you have two *and* conditions for Column F. Column F cannot
be "Mand" and "Eval-Mand" at the same time. I assume you wanted an *or*
condition for column F? Col U has to be 0, Col F has to be either Mand or
Eval-Mand, and Col Y is "completed"?

If so, try:
=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--(('Raw
Data'!$F$4:$F$5000="Mand")+('Raw Data'!$F$4:$F$5000="Eval-Mand")0),--('Raw
Data'!$Y$4:$Y$5000="completed"))

Which could also be expressed
=SUMPRODUCT(('Raw Data'!$U$4:$U$50000)*('Raw
Data'!$F$4:$F$5000={"Mand","Eval-Mand"})*('Raw
Data'!$Y$4:$Y$5000="completed"))


"Dan the Man" wrote:

I need a formula which looks at the following factors: (Column U) clients who
showed program improvement, (Column F) clients who were mandated to
treatemnt, (Column F) clients who had a mandated evaluaiton, and (Column Y)
clients who completed treatment. Please note that Column F has a drop down
menu with three options: mand, vol, Eval-Mand. The formula I have below
renders the outcome to be "0", so I know I ham missing something.:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand")*('Raw
Data'!$Y$4:$Y$5000="completed")


It may also be helpful to know that I originally had the formula only
looking at improvement for those who were mandated to treatment, and
completted, however I need to add in the additonal factor of those who were
mandated to have an evaluation. Again, both mandated to treatment, and
mandated to have an evaluation are "drop down" menu items in Column F. Any
help would be greatly appreciated.

Thanks in advance!

Dan





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 145
Default Formula Problem. Anyone up for the challenge, lol?

Just got home. Thanks for all the help everyone...................I
appreciate having this group.............You all have saved my life more than
once.............Dan

"JMB" wrote:

based on your follow up to Rick - do you want "Mand" clients who showed
improvement and completed the program plus "Eval-Mand" clients who completed
the program? You could try:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw
Data'!$Y$4:$Y$5000="completed"))+SUMPRODUCT(--('Raw
Data'!$F$4:$F$5000="Eval-Mand"),--('Raw Data'!$Y$4:$Y$5000="completed"))

although there may be a better or shorter way to do it
"JMB" wrote:

Your problem is you have two *and* conditions for Column F. Column F cannot
be "Mand" and "Eval-Mand" at the same time. I assume you wanted an *or*
condition for column F? Col U has to be 0, Col F has to be either Mand or
Eval-Mand, and Col Y is "completed"?

If so, try:
=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--(('Raw
Data'!$F$4:$F$5000="Mand")+('Raw Data'!$F$4:$F$5000="Eval-Mand")0),--('Raw
Data'!$Y$4:$Y$5000="completed"))

Which could also be expressed
=SUMPRODUCT(('Raw Data'!$U$4:$U$50000)*('Raw
Data'!$F$4:$F$5000={"Mand","Eval-Mand"})*('Raw
Data'!$Y$4:$Y$5000="completed"))


"Dan the Man" wrote:

I need a formula which looks at the following factors: (Column U) clients who
showed program improvement, (Column F) clients who were mandated to
treatemnt, (Column F) clients who had a mandated evaluaiton, and (Column Y)
clients who completed treatment. Please note that Column F has a drop down
menu with three options: mand, vol, Eval-Mand. The formula I have below
renders the outcome to be "0", so I know I ham missing something.:

=SUMPRODUCT(--('Raw Data'!$U$4:$U$50000),--('Raw
Data'!$F$4:$F$5000="Mand"),--('Raw Data'!$F$4:$F$5000="Eval-Mand")*('Raw
Data'!$Y$4:$Y$5000="completed")


It may also be helpful to know that I originally had the formula only
looking at improvement for those who were mandated to treatment, and
completted, however I need to add in the additonal factor of those who were
mandated to have an evaluation. Again, both mandated to treatment, and
mandated to have an evaluation are "drop down" menu items in Column F. Any
help would be greatly appreciated.

Thanks in advance!

Dan



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
Challenge for a formula [email protected] Excel Discussion (Misc queries) 4 January 16th 08 10:53 PM
challenge formula Frances C[_2_] Excel Worksheet Functions 4 October 4th 07 05:46 AM
PLEASE HELP!!! Formula Question (Here's a challenge) :) William@Target[_2_] Excel Worksheet Functions 2 May 11th 07 07:11 PM
SUMPRODUCT formula challenge Mitchell Excel Worksheet Functions 3 October 11th 06 01:02 PM
Can this formula be created - Challenge Brento Excel Discussion (Misc queries) 0 June 20th 06 10:31 PM


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