+ Reply to Thread
Results 1 to 3 of 3

IF cell begins with x

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    IF cell begins with x

    Hi

    Can I use IF to say IF cell begins with X then "yes" , "no"
    X= first word

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: IF cell begins with x

    You would need to use the Instr function within VBA or the Text.StartsWith function in Power Query.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,907

    Re: IF cell begins with x

    Try this:

    =IF(LEFT(A1,1)="X","Yes","No")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Return a cell value if number begins with
    By matrixpom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2020, 02:02 AM
  2. If Cell in Column E begins with a space, move the cell and corresponding cells
    By dmccague in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2019, 09:58 AM
  3. [SOLVED] If cell begins with
    By pauldaddyadams in forum Excel General
    Replies: 7
    Last Post: 05-07-2015, 03:59 AM
  4. [SOLVED] If cell begins with 8 then OS, else BS
    By Lisa_NYC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2014, 04:51 PM
  5. [SOLVED] if cell BEGINS WITH abc, then return 123, or if cell BEGINS WITH def, then 456, ...
    By Marijke in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-29-2013, 11:20 AM
  6. IF Cell Contains Text That Begins With....
    By sabrefan27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-22-2007, 03:30 AM
  7. Looping Sum, If cell begins With
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-07-2007, 09:13 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