+ Reply to Thread
Results 1 to 4 of 4

if cell contains "word" then assign value or name

  1. #1
    Registered User
    Join Date
    08-12-2014
    Location
    Indonesia
    MS-Off Ver
    MS Office 2013
    Posts
    2

    if cell contains "word" then assign value or name

    Hey Everyone,

    I'm new here,
    I want to do some commands,
    I have an address coloumn at b2,
    Then if b2 contains "manchester", c2 will be "UK"; if b2 contains "london", c2 will be "UK" too
    but if b2 contains "roma", c2 will be "not UK"..

    please anyone help..

    thank you

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,373

    Re: if cell contains "word" then assign value or name

    Not clear about what you need, maybe better if you upload your sample workbook here, click "Go Advanced" button and find paperclip button to attach the file.

    Salam
    Rizky

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: if cell contains "word" then assign value or name

    Please Provide sample workbook with desire output
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: if cell contains "word" then assign value or name

    Try the below,

    =IF(OR(B2="Manchester",B2="London"),"Uk",IF(B2="Roma","Not Uk","Na"))

    Else pl post a sample
    Click just below left if it helps, Boo?ath?

  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: if cell contains "word" then assign value or name

    Try the below,

    =IF(OR(B2="Manchester",B2="London"),"Uk",IF(B2="Roma","Not Uk","Na"))

    Else pl post a sample

+ 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. If Cell contains "word" then assign value
    By teckmann in forum Excel General
    Replies: 2
    Last Post: 02-25-2014, 05:26 PM
  3. [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
  4. [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
  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

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