+ Reply to Thread
Results 1 to 3 of 3

Show some value if a cell contains any text out of provided list of text

  1. #1
    Forum Contributor
    Join Date
    07-19-2017
    Location
    usa
    MS-Off Ver
    2016 Professional Plus
    Posts
    130

    Show some value if a cell contains any text out of provided list of text

    Hi,
    I have attached an excel file where I want to put a formula in cell B2 where formula will check cell A2 and if Cell A2 contains any text from list $D$2:$D$3 then formula will show the word "Commercial" otherwise it won't show anything.

    If we can construct formula with if condition then I would be able to use the same formula for multiple criterias with multiple if conditions. I hope you understand the problem.

    Regards,
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,775

    Re: Show some value if a cell contains any text out of provided list of text

    How about
    =IF(COUNT(SEARCH($D$2:$D$3,A2))>0,"Commercial","")

    This may need to be confirmed with Ctrl Shift Enter

  3. #3
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    330

    Re: Show some value if a cell contains any text out of provided list of text

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Shouldn't need to make it an array formula that way.
    Sub Reputation()
    Dim Problem as Variant
    Dim Reputation as Integer
    For Each Problem in Forum.Threads
        If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1
    Next Problem
    End Sub

+ 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. Replies: 4
    Last Post: 07-22-2019, 06:21 PM
  2. Replies: 4
    Last Post: 09-21-2015, 05:07 AM
  3. Show cell value(text) in comment box text, or mouse tool tip on an gif icon
    By JIBG in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-19-2014, 06:50 AM
  4. Replies: 2
    Last Post: 03-31-2014, 01:32 AM
  5. cell B will automatically show a text depending on the text on column A
    By Elainefish in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2013, 05:57 AM
  6. Compare cell text to set list and show text differences
    By NSTurk725 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-06-2009, 09:54 PM
  7. [SOLVED] Using IF formula to show what text is in the cell from ddown list
    By Clark in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2006, 03:25 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