I have to create a Dashboard, column C would have different derivative products with their maturities known as the short name. Example IRS July 18.
There are 20 family names, sometimes, column c could have the trade short name in lower or upper characters.
I have created a nested if Statement which in part does work, it only fails if a certain character is in upper or lower case. I therefore have to add this variation to the if statement, for it to work. Secondly, it is not picking up short names where the product is not listed.
Can I do this in such a way that it only looks for the characters and ignores upper and lowercase.
My last else statement, if a shortname is added with a new family, I am keen for it to be picked up. any thoughts how I can update this?
Instead of giving the full list I kept it very small
Example
If DerivativeID Like "*irs *" Then
DerivativeFamily = "Interest Rate Swap "
ElseIf DerivativeID Like "*cds *" Then
DerivativeFamily = "credit default swap "
Else
DerivativeFamily = "Add to List"
End If
if lcase$(DerivativeID) Like "*cds *" Then ...