1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved Multiple IF Statement based on first 3 characters of cell

Discussion in 'Business Applications' started by gevans, Sep 9, 2016.

Thread Status:
Not open for further replies.
  1. gevans

    gevans Thread Starter

    Joined:
    Aug 26, 2004
    Messages:
    99
    Hello,

    I am using Excel 2010 and trying to resolve an if statement... in the file attached I require the following:

    I need 1 of 3 results for cell G2 based on the first 3 characters of cell B2

    M15### would equal PAB
    M22### would equal NSY
    Non# would equal None

    Thanks
     

    Attached Files:

  2. gevans

    gevans Thread Starter

    Joined:
    Aug 26, 2004
    Messages:
    99
    This was my attempt but not working:

    =IF(LEFT(B2,3)="M15","PAB",if(LEFT(B2,3)="M22","NSY",if(B2,3)="Non","None")))
     
  3. gevans

    gevans Thread Starter

    Joined:
    Aug 26, 2004
    Messages:
    99
    NVM... solved it! Was error in my own formula...

    IF(LEFT(B2,3)="M15","PAB",IF(LEFT(B2,3)="M22","NSY",IF(LEFT(B2,3)="Non","None")))
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1177801

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice