+ Reply to Thread
Results 1 to 3 of 3

If Cell contains "word" then assign value

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    philadelphia, pa
    MS-Off Ver
    Excel 2007
    Posts
    1

    If Cell contains "word" then assign value

    Basically I have several columns A-F.
    Column A-F contains a list of words, some are blank
    Column G is blank.
    If a cell in column A contains a word like "academic", I want the number 1 to appear in the respective row in column G.
    If a cell in column A does not contain a word "academic", I want the number 0 to appear in the respective row in column G.
    Many thanks.

  2. #2
    Forum Contributor
    Join Date
    12-16-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: If Cell contains "word" then assign value

    it is a fairly straight forward formula
    =IF(A1="academic", 1, 0)

    ifacedemic.xlsx

    http://www.easyexcelanswers.com

  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
    52,926

    Re: If Cell contains "word" then assign value

    Not quite so simple, what if B contains the word...or C?

    tr this...
    =if(countif(A1:F1,"academic")>0,1,0)
    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

+ 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. If Cell contains "word" then assign value
    By undergraduate in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-13-2014, 01:38 AM
  2. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  3. [SOLVED] Assign Categories for Time of Day: "Morning", "Afternoon", "Evening"
    By long_shanks in forum Excel General
    Replies: 3
    Last Post: 06-11-2013, 02:59 AM
  4. Replies: 2
    Last Post: 08-02-2011, 06:57 AM
  5. Assign value to "word" and set to show value instead of "word"
    By basicgerm in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 05-30-2009, 07:15 AM

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