Hi All,
I have the following IF statement as a formula in Excel:
=IF(OR(K2="JPY",I2="JPY"),"USDJPY",IF(OR(K2="EUR",I2="EUR"),"EURUSD",IF(OR(K2="CHF",I2="CHF"),"USDCHF",IF(OR(K2="CAD",I2="CAD"),"USDCAD",IF(OR(I2="GBP",K2="GBP"),"GBPUSD",IF(OR(I2="AUD",K2="AUD"),"AUDUSD"))))))
I want to be able to write something like this in VBA so that is is easier to use and so i can use more than 7 IF statments.
I dont know the proper syntax for composing this formula in a specific cell.
My goal is to build this into a preexisting code that i have
many thanks in advance
-Az
I have the following IF statement as a formula in Excel:
=IF(OR(K2="JPY",I2="JPY"),"USDJPY",IF(OR(K2="EUR",I2="EUR"),"EURUSD",IF(OR(K2="CHF",I2="CHF"),"USDCHF",IF(OR(K2="CAD",I2="CAD"),"USDCAD",IF(OR(I2="GBP",K2="GBP"),"GBPUSD",IF(OR(I2="AUD",K2="AUD"),"AUDUSD"))))))
I want to be able to write something like this in VBA so that is is easier to use and so i can use more than 7 IF statments.
I dont know the proper syntax for composing this formula in a specific cell.
My goal is to build this into a preexisting code that i have
many thanks in advance
-Az