+ Reply to Thread
Results 1 to 4 of 4

If contains formula

  1. #1
    Registered User
    Join Date
    06-14-2010
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    70

    If contains formula

    I have a very long spreadsheet that has a column with different tactics in it. I want to create a formula to look at a specfic column (column H) in the spreadsheet and tell me if the word "cloud" or "virtualization" is present anywhere in that cell. So if cloud is in h3 then put the word cloud in column i. If virtualization is anywhere in column H, then put virtualization in column i.

    Is there a formula that can do both cloud and virtualization in 1 formula?

    Any help would be much appreciated!
    Last edited by Koda7; 01-06-2011 at 12:21 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: If contains formula

    You would do best to post a sample workbook showing your Sheet Layout and perhaps Before and After examples.

    It should clearly illustrate your problem and not contain any sensitive data.

    Cheers

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If contains formula

    Will it be only single words in the cells?

    If not:

    =IF(COUNTIF(H:H,"*cloud*"),"cloud",IF(COUNTIF(H:H,"*visualization*"),"visualization",""))

    If so, then remove the *'s
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    06-14-2010
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: If contains formula

    Thanks NBVC, that worked like a charm!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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