+ Reply to Thread
Results 1 to 13 of 13

How to determine if a column contains any text, if so return "in use"

  1. #1
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    How to determine if a column contains any text, if so return "in use"

    Hello, I've tried several examples of formula's to try to get this to work but am failing to find a solution, although I'm sure it is relatively simple.

    I have a column that in some cells contains a single text character, if text is found anywhere in the column then I want to return "in use".

    hope you can help

    thanks

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: How to determine if a column contains any text, if so return "in use"

    Try...

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

  3. #3
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: How to determine if a column contains any text, if so return "in use"

    This is what I've used =IF(COUNTA(AO3:AO197)=0,"", "In use")

    Still returns "in Use" if the column is blank

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: How to determine if a column contains any text, if so return "in use"

    Try this:

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

  5. #5
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: How to determine if a column contains any text, if so return "in use"

    Hello

    Using =IF(ISBLANK(AO3:AO197)=TRUE,"","In Use") Still returns "In use" if the column is blank

    I should mention the entire column does contain formulas that return a single text symbol if true, maybe the column LOOKS blank but isn't ?

  6. #6
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: How to determine if a column contains any text, if so return "in use"

    Don't put the entire range in your formula (AO3:AO197). Just put the SPECIFIC CELL you're checking. In the column to the right of AO3, place this formula and copy it down:

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

  7. #7
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: How to determine if a column contains any text, if so return "in use"

    I need to check the range of the columns

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to determine if a column contains any text, if so return "in use"

    Quote Originally Posted by sipa View Post

    I should mention the entire column does contain formulas that return a single text symbol if true, maybe the column LOOKS blank but isn't ?
    Show us what some of those formulas look like. Do they return formula blanks "" ? If so, maybe this is what you need:

    =IF(COUNTIF(AO3:AO197,"?*"),"In Use","")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: How to determine if a column contains any text, if so return "in use"

    Here is an example of the formulas used, it's an array formula

    =IF(ISNUMBER(MATCH($AO$2&$AU$2&$C3,'GPlan'!$C$18:'GPlan'!$C$301&'GPlan'!$D$18:'GPlan'!$D$301&'GPlan'!$E$18:'GPlan'!$E$301,0)),'GPlan'!$E$15,"")

  10. #10
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: How to determine if a column contains any text, if so return "in use"

    Tony, your adapted formula did the trick.

    Thanks again for you help

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to determine if a column contains any text, if so return "in use"

    Quote Originally Posted by sipa View Post
    Here is an example of the formulas used, it's an array formula

    =IF(ISNUMBER(MATCH($AO$2&$AU$2&$C3,'GPlan'!$C$18:'GPlan'!$C$301&'GPlan'!$D$18:'GPlan'!$D$301&'GPlan'!$E$18:'GPlan'!$E$301,0)),'GPlan'!$E$15,"")
    OK, so the formula could return formula blanks.

    Try the formula in post 8.

    It will exclude (not count) cells that contain formula blanks. Formula blanks evaluate as TEXT values.

  12. #12
    Forum Contributor
    Join Date
    06-10-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    272

    Re: How to determine if a column contains any text, if so return "in use"

    That did it Tony, thank you.

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to determine if a column contains any text, if so return "in use"

    You're welcome. Thanks for the feedback!

+ 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 "text" present with valueA >0, return valueB matching "text"
    By Raffen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2015, 10:06 AM
  2. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  3. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  4. Replies: 3
    Last Post: 04-14-2013, 11:53 PM
  5. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. [SOLVED] How do I split "A1B2" into "A1" and "B2" using text to column fun.
    By Jennifer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2005, 06:06 PM

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