Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Evaluate on multiple columns and return a value

I have a graphical decision tree that I use to estimate work effort based on
three decision points. The combination of points and responses results in 18
possible answers (work effort estimates). I'm trying to find a way to
automate this in an Excel spreadsheet of projects.

What I currently have are the three decision points as three drop-downs
based on lists I've set up on a separate worksheet. The options a

Column A = Possible answers are High, Med, and Low
Column B = Possible answers are Yes, No
Column C = Possible answers are High, Med, Low

What I'd like to do is evaluate the answers selected in A, B, and C and
populate a Column D with the value provided on the decision tree. (Note that
at this point I don't have those 18 values stored anywhere in the XLS.)

Note that any one selection does not impact the other selections - they are
mutually exclusive. Hence the possible 18 combinations/results.

The only way that I know to do this is with an IF statement (i.e. IF A=High
and B=Yes and C=High then populate D with 400) where I would have to provide
all of the decision tree values for each combo. But I'm not particularly keen
on writing an 18 argument IF statement.

I'm guessing there is some more efficient way to do this, but I have no idea
what it might be. I've looked at some of the other functions and can't see
how they would achieve what I'm looking for.

Thanks in advance for assistance!
--
Cynthia
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 342
Default Evaluate on multiple columns and return a value

Build a table with you 18 possible answers.

e.g. HighNoLOw One Possible Result
HighYesLow Another Result

Then, in column D lookup the result you want with a formula like this:

=VLOOKUP(A7&B7&C7,H4:I5,2,FALSE)

I hope that makes sense.

Tom
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Evaluate on multiple columns and return a value

If it were me, I'd make a little table elsewhere and use it as a
lookup. 2 columns:

Column AA:
HighYesHigh
HighYesMed
HighYesLow
MedYesHigh

....and so forth for all 18. No spaces.

Column AB would have the appropriate values for each choice.

Column D would have a simple formula:
=VLOOKUP(A1&B1&C1,$AA$1:$AB$18,2,FALSE)
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Evaluate on multiple columns and return a value

Suppose you build up a table with 18 rows and 2 columns like this:

HighYesHigh 400
HighYesMed other numbers to suit choices
HighYesLow x
HighNoHigh x
HighNoMed x
HighNoLow x
MedYesHigh x
MedYesMed x
MedYesLow x
MedNoHigh x
MedNoMed x
MedNoLow x
LowYesHigh x
LowYesMed x
LowYesLow x
LowNoHigh x
LowNoMed x
LowNoLow x

and suppose this occupies M1:N18. Then in D1 you could have this
formula:

=VLOOKUP(A1&B1&C1,M$1:N$18,2,0)

which will return the appropriate number based on your choices in A1,
B1 and C1.

Hope this helps.

Pete

On Oct 24, 10:02*pm, CynthiaF
wrote:
I have a graphical decision tree that I use to estimate work effort based on
three decision points. The combination of points and responses results in 18
possible answers (work effort estimates). I'm trying to find a way to
automate this in an Excel spreadsheet of projects.

What I currently have are the three decision points as three drop-downs
based on lists I've set up on a separate worksheet. The options a

Column A = Possible answers are High, Med, and Low
Column B = Possible answers are Yes, No
Column C = Possible answers are High, Med, Low

What I'd like to do is evaluate the answers selected in A, B, and C and
populate a Column D with the value provided on the decision tree. (Note that
at this point I don't have those 18 values stored anywhere in the XLS.)

Note that any one selection does not impact the other selections - they are
mutually exclusive. Hence the possible 18 combinations/results.

The only way that I know to do this is with an IF statement (i.e. IF A=High
and B=Yes and C=High then populate D with 400) where I would have to provide
all of the decision tree values for each combo. But I'm not particularly keen
on writing an 18 argument IF statement.

I'm guessing there is some more efficient way to do this, but I have no idea
what it might be. I've looked at some of the other functions and can't see
how they would achieve what I'm looking for.

Thanks in advance for assistance!
--
Cynthia


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Evaluate on multiple columns and return a value

Hi,

Here are two other slighly different approaches

=LOOKUP(A1&B1&C1,H1:H18&I1:I18&J1:J18,L1:L18)

In this example the three drop downs are in A1:C1 and the possibilities for
each are entered in separate columns H1:H18, I1:I18 and J1:J18 and the values
you assign are in L1:L18. This approach is nice because you can keep the
three answers in three columns. Notice that VLOOKUP can't handle the
concatented lookup table but LOOKUP can.

or

=LOOKUP(A1&B1&C1,K1:K18,L1:L18)

In this case K1:K18 contains the concatenated possible answers such as
HighYesHigh and L1:L18 contains the associated values. The advantage is a
shorter formula.


If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire


"CynthiaF" wrote:

I have a graphical decision tree that I use to estimate work effort based on
three decision points. The combination of points and responses results in 18
possible answers (work effort estimates). I'm trying to find a way to
automate this in an Excel spreadsheet of projects.

What I currently have are the three decision points as three drop-downs
based on lists I've set up on a separate worksheet. The options a

Column A = Possible answers are High, Med, and Low
Column B = Possible answers are Yes, No
Column C = Possible answers are High, Med, Low

What I'd like to do is evaluate the answers selected in A, B, and C and
populate a Column D with the value provided on the decision tree. (Note that
at this point I don't have those 18 values stored anywhere in the XLS.)

Note that any one selection does not impact the other selections - they are
mutually exclusive. Hence the possible 18 combinations/results.

The only way that I know to do this is with an IF statement (i.e. IF A=High
and B=Yes and C=High then populate D with 400) where I would have to provide
all of the decision tree values for each combo. But I'm not particularly keen
on writing an 18 argument IF statement.

I'm guessing there is some more efficient way to do this, but I have no idea
what it might be. I've looked at some of the other functions and can't see
how they would achieve what I'm looking for.

Thanks in advance for assistance!
--
Cynthia



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Evaluate on multiple columns and return a value

Thanks for the suggestions! I got the VLOOKUP to work. I couldn't get the
LOOKUP option to work, but no doubt that was user error.

Thanks!

--
Cynthia


"CynthiaF" wrote:

I have a graphical decision tree that I use to estimate work effort based on
three decision points. The combination of points and responses results in 18
possible answers (work effort estimates). I'm trying to find a way to
automate this in an Excel spreadsheet of projects.

What I currently have are the three decision points as three drop-downs
based on lists I've set up on a separate worksheet. The options a

Column A = Possible answers are High, Med, and Low
Column B = Possible answers are Yes, No
Column C = Possible answers are High, Med, Low

What I'd like to do is evaluate the answers selected in A, B, and C and
populate a Column D with the value provided on the decision tree. (Note that
at this point I don't have those 18 values stored anywhere in the XLS.)

Note that any one selection does not impact the other selections - they are
mutually exclusive. Hence the possible 18 combinations/results.

The only way that I know to do this is with an IF statement (i.e. IF A=High
and B=Yes and C=High then populate D with 400) where I would have to provide
all of the decision tree values for each combo. But I'm not particularly keen
on writing an 18 argument IF statement.

I'm guessing there is some more efficient way to do this, but I have no idea
what it might be. I've looked at some of the other functions and can't see
how they would achieve what I'm looking for.

Thanks in advance for assistance!
--
Cynthia

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
Evaluate 5 columns and return right-most name JulesMacD Excel Worksheet Functions 7 March 18th 08 01:07 AM
VLookup: Return Multiple Columns? Walter Excel Discussion (Misc queries) 6 August 29th 07 05:58 PM
Can Excel evaluate one cell and return the information in another? John Excel Discussion (Misc queries) 8 March 26th 07 08:34 PM
Function evaluate multiple cells and return 1st one w/a value Dan Shoemaker Excel Discussion (Misc queries) 1 August 27th 06 02:46 AM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM


All times are GMT +1. The time now is 03:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"