+ Reply to Thread
Results 1 to 5 of 5

If statement help

  1. #1
    Registered User
    Join Date
    04-07-2014
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2007
    Posts
    37

    If statement help

    I am trying to distinguish between PO numbers, one system uses PO (the letter) and the other system uses P0 (the number). I want to add a column that identifies which system created the PO number based on if/starts with formula

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: If statement help

    Maybe using something like this will help

    =A1=B1

    this will return TRUE or FALSE


    A
    B
    C
    1
    PO P0
    FALSE
    2
    PO PO
    TRUE
    3
    PO PO
    TRUE
    4
    PO PO
    TRUE
    5
    PO P0
    FALSE
    6
    PO P0
    FALSE
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

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

    Re: If statement help

    You can have:

    =IF(LEFT(A2,2)="PO","system 1","system 2")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    04-07-2014
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2007
    Posts
    37

    Solved- Re: If statement help

    That worked, thanks Pete!

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

    Re: Solved- Re: If statement help

    You're welcome, Stephen.

    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.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  2. [SOLVED] For Next Statement with If Statement Reducing Upper Variable
    By Break_Point in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2013, 06:30 PM
  3. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  4. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  5. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 PM

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