Link to home
Start Free TrialLog in
Avatar of abdb469
abdb469Flag for United Kingdom of Great Britain and Northern Ireland

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of abdb469

ASKER

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!
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
Avatar of abdb469

ASKER

Thanks again.
Avatar of abdb469

ASKER

Hi byundt,

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

https://www.experts-exchange.com/questions/27679826/Excel-macro-task.html

Thanks.