05-08-2019 09:00 AM
05-08-2019 09:00 AM
I am trying to create an IF formula that automates whether a destination is domestic or international. The destination will be entered by its airport code (BGI,LAS,) and a separate cell will determin if it is International or not. I need this formula to be used in over 3k cells in the same row how would I array the formula to make it cleaner instead of coping and pasting 3k formulas.
If one of the below locations are entered in lets say cell i1 then Cell J1 I want it to show International or domestic
I1=BGI Then Cell J1 with the formula automates if it is international or domestic. In this case its International.
Please help the formula below I have works but I have more arguments then I posted below its about 100 plus
05-08-2019 09:21 AM
@John Sokolowski If you reformat your table so it has airport code in column A and DOmestic or International in column B you can use VLOOKUP to get the information you need.
05-08-2019 10:20 AM
Thank you , So I did do that but one of the vlookups keeps returning the wrong value and I don't know why.
05-08-2019 10:29 AM
@John Sokolowski , if your airports are in columns A and B starting from first row where are column names, when it could be
05-08-2019 11:23 AM
This is my code
I have a table on the master sheet with 2 columns.
When I run the below formula for "PSE" which is supposed to = DOM it returns "INTL". the formula is taking the information from the cell above PSE on the master list and returning that value instead of the value for PSE it is giving me the value for POS .
the table is sorted in alphabetical order
05-08-2019 11:56 AM
this is what I am getting I put the code in one of the cells. I used Hlookup to see if it comes out differently but it doesn't .
05-08-2019 01:51 PM
@John Sokolowski , if VLOOKUP returns the value above it means it didn't find PSE. Check manually if the match like
(or where is that value in master sheet) if it returns TRUE or FALSE. That could be extra space like "PSE ", or non-printable character, or like.