+ Reply to Thread
Results 1 to 7 of 7

How to check if a column contains a certain word?

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    How to check if a column contains a certain word?

    Hi,

    I have a transaction list of invoices and column N contains their status (processed/unprocessed/query). How can I create a formula to check whether any of the invoices are still in query, i.e. it looks in column N for the word 'query' and returns 'yes' if any are and 'no' if any aren't.

    Thanks,

    Snook
    Last edited by The_Snook; 02-22-2013 at 08:45 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to check if a column contains a certain word?

    Something like this?

    =IF(N2="QUERY","YES",NO)

    OR

    =if(countif(n:n,"query")>0,"yes","no")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: How to check if a column contains a certain word?

    Hi Snook,

    something like this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    edit: I swear I didn't copy you Fotis... :D
    Last edited by RHCPgergo; 02-22-2013 at 05:40 AM. Reason: wow

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: How to check if a column contains a certain word?

    That work a treat, thanks! How could I amend the formula to look at the columns in each monthly tab using the indirect function and the data in row 2? Example screenshot attached.

    INDIRECT Query.jpg
    Last edited by The_Snook; 02-22-2013 at 06:11 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: How to check if a column contains a certain word?

    This should work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy it in C3 and drag right.

  6. #6
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: How to check if a column contains a certain word?

    double post

  7. #7
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: How to check if a column contains a certain word?

    Sweet as a nut RHCPgergo! Massive thanks to both of you for your help today! The swift assistance I receive as part of this community really does make my working life so much easier. I'm gradually learning more and more about Excel and I look forward to the day I can start to give something back and assist others.

    Snook

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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