I am trying to optimize the following and not sure how to do so. I have a list of 50 items. Let's say ten of them need to return a value based on the item in the list whereas the other 40 need to simply return a default value. For example, I have a list of vendors and need a column for the currency used by that vendor. Ten of them are non US currencies and 40 are US $s. If I use If statements, i will have a ridiculously long embedded series of Ifs. And if I used a lookup table, I will have to include every vendor which I don't want to do since the list grows often and is usually just a US $ vendor anyway.
So is there a simple way to return the correct currency if the vendor is one of the ten, and US$s for everyone else?
I suspect there is a simple answer, but somehow not wrapping my head around it. Thanks in advance!!
So is there a simple way to return the correct currency if the vendor is one of the ten, and US$s for everyone else?
I suspect there is a simple answer, but somehow not wrapping my head around it. Thanks in advance!!