Closed Thread
Results 1 to 12 of 12

IF Function - Begins With

Hybrid View

  1. #1
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: IF Function - Begins With

    Good job sorting it out.
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Registered User
    Join Date
    03-16-2021
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    4

    Angry Re: IF Function - Begins With

    so I need to do something like if a3 starts with a then j3 has this output, or if a3 starts with x then j3has this output, I'm getting lost in the nesting

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: IF Function - Begins With

    Quote Originally Posted by mintyfresh2020 View Post
    so I need to do something like if a3 starts with a then j3 has this output, or if a3 starts with x then j3has this output, I'm getting lost in the nesting
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-04-2021
    Location
    Phoenix, AZ.
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: IF Function - Begins With

    I am in need of an IF Function that will check the first three characters in Column B and Set a Text Value in Column A for that row

    Example: If Cell B1 = P42ABC123N, Then cell A1 is set to "F32"

    IF B1 Begins with P21, Set A1 to F21 or,
    If B1 Begins with P24, Set A1 to F24 or,
    If B1 Begins with P28, Set A1 to F28 or,
    If B1 Begins with P12, Set A1 to F32 or,
    If B1 Begins with P32, Set A1 to F32 or,
    If B1 Begins with P42, Set A1 to F32 or,
    If B1 Begins with P33, Set A1 to S33 or,
    If B1 Begins with P46, Set A1 to S46

Closed Thread

Thread Information

Users Browsing this Thread

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

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