Question Ask A New Question Excel template - need help with formula design and IF statement III

I need some  help with a formula to do the following please on the worksheet titled "Fund Template".

If cell C60 displays the word "Big", then cell C67 (the Fund Credit Limit ceiling) should display a limit of either 75, if cell C56 ALSO shows a rating of either AAA. AA+, AA, AA-, A+ or A or show a limit of 60 if it shows A-, BBB+ or BBB or show a limit of 50 if it is BBB-, BB+ or BB.

If cell C60 displays the word "Medium", then cell C67 (the Fund Credit Limit ceiling) should display a limit of either 75, if cell C56 ALSO shows a rating of either AAA. AA+, AA, AA-, A+ or A or show a limit of 40 if C56 shows A-, BBB+ or BBB or show a limit of 25 if C56 is BBB-, BB+ or BB.

If cell C60 displays the word "Small", then cell C67 (the Fund Credit Limit ceiling) should display a limit of either 50, if cell C56 ALSO shows a rating of either AAA. AA+, AA, AA-, A+ or A or show a limit of 20 if it shows A-, BBB+ or BBB or show a limit of 5 if it is BBB-, BB+ or BB.

Basically what the above is saying, is that depending on the both the rating of the parent (could fall in one of the three categories) as well as the size of the AM, the limit could be X, Y or Z.

Please ensure that the cell C60 displays blank if there is no data entered above i.e. dont want to see #N/A if the spreadsheet has just been opened.

Thanks.
Template-design-2.xls
abdb469Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

byundtMechanical EngineerCommented:
I put a lookup table (called RatingTable) in your "Field names for lists" worksheet. This then allowed me to put a data validation dropdown  in cell C56 and use the following formula in cell C67:
=IF(OR(C56="",C60=""),"",VLOOKUP(C60,RatingTable,MATCH(C56,INDEX(RatingTable,1,),0),FALSE))

The seeming mistake with the data missing after the comma in INDEX is intentional. You need it that way for the formula to work.
Template-design-2Q27673394.xls
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
abdb469Author Commented:
Top man, that's pretty neat.  How long did it take you to do that?

Also just for my education, could you please walk me through that formula in layman terms?

Thanks!
0
byundtMechanical EngineerCommented:
RatingTable        is a named range containing your lookup table on "Field names for lists" worksheet
INDEX(RatingTable,1,)        INDEX function can be used to return a single cell from named range RatingTable, an entire row (as in this case) or entire column. By not specifying the third parameter (for column), I get the entire row.

MATCH(C56,INDEX(RatingTable,1,),0)      MATCH searches that row for the value in C56. As such it returns an index number for the desired column in RatingTable.
VLOOKUP(C60,RatingTable,MATCH(C56,INDEX(RatingTable,1,),0),FALSE)        VLOOKUP returns a value from a row of RatingTable that matches the value in C60. The column number is specified by the MATCH.

OR(C56="",C60="")        returns TRUE if either C56 or C60 is blank or equal to an empty string
=IF(OR(C56="",C60=""),"",VLOOKUP(C60,RatingTable,MATCH(C56,INDEX(RatingTable,1,),0),FALSE))           IF returns an empty string (looks like a blank) if either C56 or C60 haven't been specified. Otherwise, you get the desired value from RatingTable.

The formula took less than a minute to write. Including reading your question enough to catch your objective, set the problem up and post the solution--probably 10 minutes. I've done these before :-)

Brad
0
abdb469Author Commented:
Thanks again.
0
abdb469Author Commented:
Hi byundt,

Is there a chance you could help me with the following question?

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_27679826.html

Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.