Evaluating a string of text

Marc Enzi

Board Regular
Joined
Dec 13, 2004
Messages
92
I have to evaluate AIrport Codes and determine if the Airport is in the Continental USdomestic CONUS or outside the Continental US (OCONUS).

US Airports all start with K and Airports outside the US start with some letter other than K.

So I have two columns

Column G.......Column H
ICAO..............O/C
KLAX...............C............Los Angeles
PHNL...............O...........Honolulu

I want the formula in Column H to evaluate the 4 letter code and if it starts with "K", return "C", and if it starts with anything other than "K" return "O".

Thanks
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,203,246
Messages
6,054,373
Members
444,720
Latest member
saathvik

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top