+ Reply to Thread
Results 1 to 5 of 5

Need a formula to look at a cell and identify if it starts with a Y

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Long Island
    MS-Off Ver
    Excel 2010
    Posts
    7

    Need a formula to look at a cell and identify if it starts with a Y

    I have air data that includes whether a flight is domestic or international and the origin airport and destination airport. I want to reclassify some of the data from international to domestic by looking the fields.

    If the row of data is international and the origin or destination fields begin with a Y, then the new field would equal domestic.

    Example:
    (used . instead of spaces so the view of fields would display correctly)

    Domestic/International.........Origin Airport........Destination Airport........Updated D/I Field
    International.......................YOW....................NYC...........................Domestic
    International.......................ONT.....................YVR...........................Domestic
    Last edited by Kimchee287; 10-30-2015 at 02:56 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Need a formula to look at a cell and identify if it starts with a Y

    Put this in D2:

    =IF(AND(A2="International",OR(LEFT(B2)="Y",LEFT(C2)="Y")),"Domestic",A2)

    Then copy down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    Long Island
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a formula to look at a cell and identify if it starts with a Y

    Thanks! This worked perfectly!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Need a formula to look at a cell and identify if it starts with a Y

    Glad to be of help - thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

  5. #5
    Registered User
    Join Date
    09-11-2013
    Location
    Long Island
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a formula to look at a cell and identify if it starts with a Y

    Thanks I was just searching for the Solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A formula starts in A1 That from 7.00 to 7.59 captures orders from a linked cell
    By AussieExcelNoob in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2015, 03:02 AM
  2. Replies: 1
    Last Post: 05-17-2013, 04:56 AM
  3. [SOLVED] Creating a formula: If cell starts with number X, then enter this in column A
    By abraham.lopez in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2013, 07:05 PM
  4. Average formula that starts at first cell>0 and calculates blank cells as 0?
    By bradtredo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-20-2012, 05:54 PM
  5. Excel 2007 : Identify Same Day Trip Starts
    By Ricker090 in forum Excel General
    Replies: 2
    Last Post: 07-04-2010, 09:30 PM
  6. [SOLVED] How to identify a cell without a formula
    By Kevin in forum Excel General
    Replies: 5
    Last Post: 05-14-2005, 07:10 PM
  7. if cell starts with characters formula
    By Norman Kong via OfficeKB.com in forum Excel General
    Replies: 3
    Last Post: 03-24-2005, 07:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1