Hi everyone.
I'm having trouble filtering some data that I believe requires the use of the COUNTIF or SUMPRODUCT formulas. I've gotten close using variations of the two, but need the help of this great community!
I have a large spreadsheet of bond data that contains two columns displaying bond ratings from two ratings agencies. I would like to use a formula to identify all of the bonds in the table that are below investment grade.
The first column with ratings by Moody's can contain the following fields: Aaa, Aa1, Aa2, Aa3, A1, A2, A3, Baa1, Baa2, Baa3, Ba1, Ba2, Ba3, B1, B2, B3, Caa1, Caa2, Caa3, Ca, C. For Moody's ratings, all bonds Ba1 and lower are considered below investment grade.
The second column with ratings by S&P can contain the following fields: AAA, AA+, AA, AA-, A+, A, A-, BBB+, BBB, BBB-, BB+, BB, BB-, B+, B, B-, CCC+, CCC, CCC-, CC, C, D. For S&P ratings, all bonds BB+ and lower are considered below investment grade.
I would like to use a formula to look at these two columns in the table, and count all occurances of a bond that contains at least one of these below investment grade ratings (but I want to make sure I don't double count a row if both columns contain a below investment grade rating, that should only count once).
I would greatly appreciate your help in explaining how best to approach this problem.
Thanks in advance!
I'm having trouble filtering some data that I believe requires the use of the COUNTIF or SUMPRODUCT formulas. I've gotten close using variations of the two, but need the help of this great community!
I have a large spreadsheet of bond data that contains two columns displaying bond ratings from two ratings agencies. I would like to use a formula to identify all of the bonds in the table that are below investment grade.
The first column with ratings by Moody's can contain the following fields: Aaa, Aa1, Aa2, Aa3, A1, A2, A3, Baa1, Baa2, Baa3, Ba1, Ba2, Ba3, B1, B2, B3, Caa1, Caa2, Caa3, Ca, C. For Moody's ratings, all bonds Ba1 and lower are considered below investment grade.
The second column with ratings by S&P can contain the following fields: AAA, AA+, AA, AA-, A+, A, A-, BBB+, BBB, BBB-, BB+, BB, BB-, B+, B, B-, CCC+, CCC, CCC-, CC, C, D. For S&P ratings, all bonds BB+ and lower are considered below investment grade.
I would like to use a formula to look at these two columns in the table, and count all occurances of a bond that contains at least one of these below investment grade ratings (but I want to make sure I don't double count a row if both columns contain a below investment grade rating, that should only count once).
I would greatly appreciate your help in explaining how best to approach this problem.
Thanks in advance!