+ Reply to Thread
Results 1 to 8 of 8

IF cell contains any sort of text

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    IF cell contains any sort of text

    Is there a way to use the If function to see if a cell contains text? I am aware of the ISBLANK and ISTEXT functions but they won't work for me. I have a pretty lengthy formula that I finally got sorted out and don't feel like starting over with it, and need a FALSE returned if there is no text in the box.

  2. #2
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: IF cell contains any sort of text

    Hey Butcher,

    I'm not sure why ISTEXT won't work but without context this is what I came up with:

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


    -Melk

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: IF cell contains any sort of text

    When I try ISTEXT, the cell I reference with it has a formula in it but no value displayed. ISTEXT still recognizes the cell as having text in it, so I get a True result.

  4. #4
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: IF cell contains any sort of text

    The type formula is also returning a true value despite nothing displayed in the cell.

  5. #5
    Registered User
    Join Date
    01-31-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: IF cell contains any sort of text

    What is the formula of the cell you are testing for text? Perhaps it is set equal to "" ? if that is the case you could do an if function first such like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    where X would be your function checking for text (ISTEXT or TYPE)

  6. #6
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: IF cell contains any sort of text

    Training Stats, upload.xlsm
    Here are the specifics of my problem.
    On the Calculator sheet, cell O31 is saying "if cell O30 displays no text, and a certain cell (with Week 1 and Day 1 selected in the dropdown menus it is A6 on the training plan) is blank, then display the text in 'Training Plan'!B6.

    What I want to happen is if cell O31 does not display any text, then the cells below it will also not display any text. I can not come up with the logic to do that, while also analyzing the offset cell reference for any text.

    The purpose is so that I do not end up displaying any data that is outside of the Week and Day dropdown menu selection. Right now every day contains 3 rows of data, however in the future it might be modified to be more or less and I want to have a set of formulas that will adapt to that and display only relevant data.

  7. #7
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF cell contains any sort of text

    Looks like you're working really hard to accomodate a datatable with some crummy design choices.

    Can you improve the table to make outputting from it easier?

    Like attached.
    Attached Files Attached Files
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  8. #8
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: IF cell contains any sort of text

    The database works for me due to the format that it is printed in. I haven't ever used pivot tables but will look into those. Thanks all for the assistance. I realized what I am trying to do is accomplished by nesting 2 IF formulas so I am marking this as solved. I do appreciate the assistance though.

+ 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. sort or mark a cell if other cell contain some text
    By jamiguel77 in forum Excel General
    Replies: 2
    Last Post: 09-07-2014, 02:43 PM
  2. [SOLVED] Remove specific text from a cell and than sort cells by month and date
    By Boo123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2014, 05:05 PM
  3. [SOLVED] sort using vba want to sort text-as-numbers
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2013, 11:46 AM
  4. Sort sheet by amount of text within a cell
    By jono7gold in forum Excel General
    Replies: 1
    Last Post: 06-10-2013, 04:24 AM
  5. Sort Text in a cell from A-Z
    By SophiaBB in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-24-2012, 03:48 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