+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting keeps wanting me to type apostrophes

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Conditional Formatting keeps wanting me to type apostrophes

    Just about every formula i type, excel says it needs apostrophes. Why? For example, =IF(ISNUMBER(06)) and format is set to fill to YELLOW. I get told there is a problem with the formula to use an apostrophe.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting keeps wanting me to type apostrophes

    IF(logical_test, value_if_true, [value_if_false])

    logical_test (required) - The condition you want to test.
    value_if_true (required) - The value that you want returned if the result of logical_test is TRUE.
    value_if_false (optional) - The value that you want returned if the result of logical_test is FALSE.

    your logical_test is : ISNUMBER(06) = always TRUE
    but you forgot about value_if_true and value_if_false so function IF() doesn't know what to show.

    edit:
    but if you want to check number or not number enough to use =ISNUMBER(A1) (cell address change suitable). Result will be TRUE/FALSE so it will enough for CF
    Last edited by sandy666; 03-17-2016 at 11:29 AM.

  3. #3
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Conditional Formatting keeps wanting me to type apostrophes

    I am trying to fill a cell yellow if it is over 0, but ignore 0 and blank cells that have formulas.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting keeps wanting me to type apostrophes

    for CF: =AND(A1>0,A1<>"")

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional Formatting keeps wanting me to type apostrophes

    Conditional Formatting works only on TRUE or FALSE, so you only need to structure your formulas to return that...
    =IF(ISNUMBER(06))
    just needs to be...
    =ISNUMBER(06)
    Sandy's suggestion should work for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Conditional Formatting keeps wanting me to type apostrophes

    Quote Originally Posted by FDibbins View Post
    Conditional Formatting works only on TRUE or FALSE
    It will also work with formulas that return numbers.

    Any number other than 0 will evaluate as TRUE. 0 will evaluate as FALSE.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional Formatting keeps wanting me to type apostrophes

    Thanks for that Tony, good to know

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional Formatting keeps wanting me to type apostrophes

    You can use all three conditions: =AND(ISNUMBER(A1),A1>0) . why three? because A1<>"" is included in A1>0

    so if:
    A1 = xyz (text) result = FALSE
    A1 = 0 or -123 result = FALSE
    A1 > 0 result = TRUE
    check logical of AND function
    Last edited by sandy666; 03-17-2016 at 02:10 PM.

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

    Re: Conditional Formatting keeps wanting me to type apostrophes




    ----------

+ 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. 3 Colour Scale Conditional Formatting by Formula Type
    By swong1709 in forum Excel General
    Replies: 5
    Last Post: 03-05-2015, 07:14 AM
  2. Wanting to create conditional formatting that is not Cell related.
    By deliveryboy83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 02:46 PM
  3. Replies: 6
    Last Post: 07-02-2013, 10:29 AM
  4. Choose the type of conditional formatting
    By Beginner Level in forum Excel General
    Replies: 3
    Last Post: 05-04-2012, 05:12 AM
  5. [SOLVED] Change font type in Conditional Formatting
    By Kyndsberg in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 05:20 PM
  6. Conditional Formatting type of operation
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-13-2005, 03:25 AM
  7. Conditional formatting type question...
    By mightyhef in forum Excel General
    Replies: 0
    Last Post: 02-09-2005, 08:03 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