+ Reply to Thread
Results 1 to 3 of 3

Need help with if statement

  1. #1
    Registered User
    Join Date
    09-29-2011
    Location
    Carmel, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Need help with if statement

    Column A has text that may appear as follows:
    300-3000-000-000-000
    300-3490-IRE-CAP-555
    100A860
    300-3230

    I'm trying to write a formula that will return a "label" of PROJECT for all text that appears as 3**-***, etc. All others should be "labeled" SHARED or some other defining text.

    Currently A1 = 300-3219-CNS
    A2 = 100A860

    H1 = SHARED

    I've written the formula as
    =IF(A1="3*","PROJECT",H1)

    It returns the formula as H1 or SHARED and I want it to return PROJECT.

    I've replaced the * with ?, but that doesn't seem to help. Is there a different wildcard I should use?

    What am I missing - PLEASE HELP.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Need help with if statement

    Don't think wildcards will work here. If the first number is your only condition to determine PROJECT or SHARED, you will need to truncate all unnecessary alphanumeric values first.

    Use this instead.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-29-2011
    Location
    Carmel, Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need help with if statement

    Thank you. That works perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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