Solved

Excel Formula for determining proper selection

Posted on 2011-09-07
6
218 Views
Last Modified: 2012-06-21
EE Professionals,

I'm looking for a fomula that determines a text result based on an average.  The attached sample spreadsheet shows a matrix where answers to Events are recorded, summed and averaged.  What I'm looking for is a formula (e.g. =if(?????) that checks the average by event and depending on where the numeric value falls in the range, it will apply the appropriate text.

I'm trying to solve for C9:C12.  It should be populated with the text (e.g. Achieve, Partial, Invest, etc. etc.).

Hopefully, when you look at the sheet it will be self explanitory.

Thank you,

B.
Data-Collection-Workbook.xlsx
0
Comment
Question by:Bright01
6 Comments
 
LVL 6

Accepted Solution

by:
theKashyap earned 500 total points
ID: 36498372
If I understood right then one possibility is: =IF(AND(C8>=C20,C8<=D20),B20,IF(AND(C8>=C19,C8<=D19),B19,IF(AND(C8>=C18,C8<=D18),B18,IF(AND(C8>=C17,C8<=D17),B17,"n/a"))))

Put that in C9.

You can modify it appropriately for other cells.
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 36498425
Hello Bright01,

It's easier if you can reverse the order of the tables so that the numbers in column C are ascending, then you can use LOOKUP rather than long nested IFs, e.g. with data reversed you can use this formula in C9

=LOOKUP(C8,$C12:$C15,$B12:$B15)

and similar in the others, see attached

regards, barry
27296040.xlsx
0
 
LVL 39

Expert Comment

by:nutsch
ID: 36498450
sort your conditions with ascending range 1 and you can use the following formula in cell C9 for condition 2

=INDEX($B$17:$B$21,MATCH(C$8,$C$17:$C$21))

Condition 1 would be

=INDEX($B$12:$B$15,MATCH(C$8,$C$12:$C$15))

also with sorted range1

Thomas
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 39

Expert Comment

by:nutsch
ID: 36498458
which of course is another version of doing what barry proposed in his comment.

T
0
 

Author Closing Comment

by:Bright01
ID: 36499122
Thanks everyone.  The solution that Kashyap provided works best since I cannot rank/sort/acend/decend column C.

Much thanks,

B.
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 36499249
.....as it stands, though, you have gaps in your ranges - what value do you expect returned if C8 = 4.5? The formula suggested by TheKashyap will return n/a - if the ranges are 3 to  4 and 5 to 7 then any value > 4 and < 5 will not fit in either range........

regards, barry
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now