+ Reply to Thread
Results 1 to 3 of 3

IF a cell contains specific texts!

  1. #1
    Registered User
    Join Date
    01-05-2020
    Location
    Nepal
    MS-Off Ver
    2013
    Posts
    22

    Question IF a cell contains specific texts!

    Hello,

    I want help regarding a cell which contains specific text.

    For Example:
    If A1 contains 'Sent to Butwal' than return "Returned".
    If A1 contains 'Sent to Bharatpur' than return "Returned".
    If A1 contains 'Sent to Parasi' than return "Parasi".
    If A1 contains 'Sent to Taulihawa' than return "Taulihawa".
    If A1 contains any name rather than above mentioned words like (Jack, Ryan, Rajesh, Maria, etc) than return "Sold".
    And if A1 does not contains any text i.e. blank/empty cell than return "Yard".

    I'm currently using IF, ISNUMBER & SEARCH function. Below is the current sample that I tried which is incomplete. I want help with this formula.
    Please Login or Register  to view this content.

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: IF a cell contains specific texts!

    Quote Originally Posted by anuselesscharacter View Post
    If A1 contains 'Sent to Butwal' than return "Returned".
    If A1 contains 'Sent to Bharatpur' than return "Returned".
    If A1 contains 'Sent to Parasi' than return "Parasi".
    If A1 contains 'Sent to Taulihawa' than return "Taulihawa".
    If A1 contains any name rather than above mentioned words like (Jack, Ryan, Rajesh, Maria, etc) than return "Sold".
    And if A1 does not contains any text i.e. blank/empty cell than return "Yard".
    if your example is literally literal, as in the input requirements would never change, you can just nest a bunch of FIND() functions together, can't you? and maybe use ISBLANK() and IF() as well?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-05-2020
    Location
    Nepal
    MS-Off Ver
    2013
    Posts
    22

    Re: IF a cell contains specific texts!

    Thank You, it worked!

+ 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. VBA programming: auto change cell texts based on one specific value, how to do it?
    By Forsteriana in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-24-2020, 06:26 AM
  2. [SOLVED] insert empty rows after a cell containing specific texts.
    By barrowinfurnace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2019, 03:57 PM
  3. [SOLVED] Highlight specific texts in a cell with red bold font using VBA
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-06-2017, 10:38 AM
  4. Replies: 3
    Last Post: 04-05-2017, 04:01 AM
  5. Search for multiple texts in cell, return specific text
    By mariur89 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-24-2014, 06:43 PM
  6. Extracting first number from numbers and texts in specific cell
    By macky18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2014, 08:53 AM
  7. [SOLVED] Message box pup up when cell contains specific texts
    By kleevin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2013, 02:03 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