Results 1 to 5 of 5

Thread: How to make ISFORMULA conditional format exclude 'manual' formulas
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jul 2017
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb How to make ISFORMULA conditional format exclude 'manual' formulas

    I have a conditional format in Excel 2016 set to shade cells that are formulas using the ISFORMULA() function. However, it also shades cells that include two manually input values added --- i.e. =1000+2000. That cell is still a value that will need to be input and, thus, NOT shaded.

    Any suggestions?

    Thanks!

  2. #2
    Board Regular
    Join Date
    Jul 2014
    Location
    Vienna
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: How to make ISFORMULA conditional format exclude 'manual' formulas

    wrap it in an if statement where something like =if(isnumber(search("~+",cell)),FALSE,isformula(cell),TRUE,FALSE)

  3. #3
    Board Regular
    Join Date
    Jan 2014
    Location
    Pittsburgh
    Posts
    1,073
    Post Thanks / Like
    Mentioned
    10 Post(s)
    Tagged
    1 Thread(s)

    Default Re: How to make ISFORMULA conditional format exclude 'manual' formulas

    If your formulas that don't contain functions have no parentheses, this might work:

    =LEN(FORMULATEXT(A2))<>LEN(SUBSTITUTE(FORMULATEXT(A2),"(",""))

  4. #4
    New Member
    Join Date
    Jul 2017
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: How to make ISFORMULA conditional format exclude 'manual' formulas

    Those didn't work because the real formulas can have either/both parenthesis and +. So I kept trying and got this to work:

    =ISERR(VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(FORMULATEXT(Data[@CY]),"=",""),"+",""),"-","")))

    Since all of the 'manual' formulas are simple add/subtract, removing the = + - characters will leave only digits. The real formulas will have a column letter left in the text causing the formula to evaluate as TRUE and, thereby, shading the cell.

  5. #5
    New Member
    Join Date
    Jul 2017
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: How to make ISFORMULA conditional format exclude 'manual' formulas

    OH -- have to substitute the "." for "" also

    =ISERR(VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(FORMULATEXT(Cell),".",""),"=",""),"+",""),"-","")))

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •