comprae cells

G

Guest

Hello! I have a long list of banks. For every bank there is a rating. The
rating consits of letters and sometimes a plus or minus sign eg AA-, BBB+, A.
On another spreadsheet I have a table that consists of ratings and mean
default rates. The table looks like:

  • AAA 0%
    AA 2%
    A 5%
    BBB 11,2%

What I want to do is to get the mean default rate for every bank based on
the rating. The problem is that the ratings for the banks have the plus/minus
also. Thus I want to ignore them and just pick the rating based on the
letters. Any help very much apreciated! Thanks alot!
 
W

WhytheQ

Not sure if you need to use code. A formula like this might help:

=VLOOKUP(LEFT(B66,LEN(B66)-1),C1:D10,2,FALSE)

This assumes that:
the table is in range C1:D10
the plus or minus sign is always only one character long at the end of
the string
the rating to be tested is located in cell B66

Hope this helps
J
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

read and check cells in loop 1
Sending automatic email + Bloomberg 8
ranges 5
Rating 5
check if valid and size array 1
read only alfabethical 3
Checking string 3
make Excel see a (one digit) number as text 5

Top