Hi,
I am quite new on Excel and I am trying to create a Formula which is some kind of a database. I want to create an autofill of time between 2 locations that I will pre-set... In the first line for ex. IST is city code and BKK is city code, if I insert these 2 city codes the value of 2 hours and 10 minutes will automatically be filled.
My formula contains around 300 lines such as below, and when I finally tried to insert it, it says that formula is too long.
Do you have any idea to achieve this or bypass the formula is too long problem.
Many thanks.
I am quite new on Excel and I am trying to create a Formula which is some kind of a database. I want to create an autofill of time between 2 locations that I will pre-set... In the first line for ex. IST is city code and BKK is city code, if I insert these 2 city codes the value of 2 hours and 10 minutes will automatically be filled.
My formula contains around 300 lines such as below, and when I finally tried to insert it, it says that formula is too long.
Do you have any idea to achieve this or bypass the formula is too long problem.
Many thanks.
Code:
=IF(AND(C2="IST",E2="BKK"),TIME(2,10,0),
IF(AND(C2="BKK",E2="IST"),TIME(5,35,0),
IF(AND(C2="FRA",E2="AYT"),TIME(3,35,0),
IF(AND(C2="MNS",E2="FRA"),TIME(2,40,0),
IF(AND(C2="BRU",E2="PAR"),TIME(2,30,0),
IF(AND(C2="JFK",E2="DCD"),TIME(3,45,0),
IF(AND(C2="SXD",E2="DKI"),TIME(3,25,0),
IF(AND(C2="ERD",E2="FDD"),TIME(2,35,0)