+ Reply to Thread
Results 1 to 4 of 4

Help with simple IF statement

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    Bloomsburg, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help with simple IF statement

    I can't seem to figure this out. Trying to make a column in this excel spreadsheet I am using for my class titled "Fatal?" In this column, it will take the information from the F column and input "yes" or "no"

    Right now, I can't get it to work. The F column contains the word fatal but sometimes has other words in the same cell. So I thought I could do =if(f3="*FATAL*", "yes", "no") but it returns no through all cells.

    Can anybody help me? I've attached the spreadsheet.

    Thanks in advanced.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Help with simple IF statement

    Hello,

    Judging from your formula alone, you can use this formula instead
    Please Login or Register  to view this content.
    (copy pasta from Ford)
    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

    Regards,
    Lem

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    Bloomsburg, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with simple IF statement

    Thanks for the quick response. It worked.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with simple IF statement

    The IF function doesn't work with wildcards.

    Here's one way to do it:

    =IF(COUNTIF(F3,"*FATAL*"),"yes","no")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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