+ Reply to Thread
Results 1 to 6 of 6

Is it possible to tell Excel to treat certain text value e.g. "alpha" in a cell as =na()

  1. #1
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Is it possible to tell Excel to treat certain text value e.g. "alpha" in a cell as =na()

    For graphing purposes, I would like to know if it is possible to tell Excel to treat certain text value e.g. "alpha" in a cell as =na(). So that it will print no line instead of zeros (which is what it currently does when it reads text). Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Is it possible to tell Excel to treat certain text value e.g. "alpha" in a cell as =na

    Is your source data table comprised of formulas or hard coded values?
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Is it possible to tell Excel to treat certain text value e.g. "alpha" in a cell as =na

    hard coded values. thanks

  4. #4
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Is it possible to tell Excel to treat certain text value e.g. "alpha" in a cell as =na

    Create a second helper table with formulas that references the previous table cell-for-cell. Adjust the following formula as needed:
    =IF(B2="alpha",NA(),B2)

    If you're looking to replace any text values with NA use:
    =IF(ISTEXT(B2),NA(),B2)

    Adjust your chart's source data to the helper table.

  5. #5
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279
    Quote Originally Posted by Craig K. View Post
    Create a second helper table with formulas that references the previous table cell-for-cell. Adjust the following formula as needed:
    =IF(B2="alpha",NA(),B2)

    If you're looking to replace any text values with NA use:
    =IF(ISTEXT(B2),NA(),B2)

    Adjust your chart's source data to the helper table.

    Hi Craig. Thats what I have already done. I was hoping for something less data intensive. Anyway thanks for your help!

  6. #6
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Is it possible to tell Excel to treat certain text value e.g. "alpha" in a cell as =na

    Unfortunately that is the only way you can accomplish what you want without creating a macro to replace the values.

+ 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: 7
    Last Post: 02-07-2020, 11:00 AM
  2. Replace "_" with "." and remove Trailing Alpha (where and when applicable)
    By chacamasur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2014, 02:22 PM
  3. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  4. [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
  5. Replies: 8
    Last Post: 08-15-2006, 02:15 PM
  6. [SOLVED] If A3=alpha numeric,"X", if A3=text,"Y", Blank
    By Gary in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 08-07-2006, 03:30 PM
  7. [SOLVED] If A3=alpha numeric,"X", if A3=text,"Y", Blank
    By Gary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2006, 03:50 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