• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional formatting formula lost after multiplying values by 1 to convert to number format

On sheet 1, I have a conditional format formula applied to column D.

Conditional Formatting Window.png


The values in column D turn red because the VLOOKUP doesn't recognize these values in column I even though they are there. The reason is because the values in column D are formatted as text instead of number. So far so good.

Because the values in column D are really in column I, and I want the values in column D to be recognized by the VLOOKUP, I need to convert column D to number format.

On sheet 2, I copy the '1' in cell F3, select D7:D26, right click > Paste Special > Multiply. The values in column D are no longer red because they match column I. While this is what I want, I noticed that after multiplying by '1', when I go back and check column D for my conditional format formulas, they are no longer there.

Why did the CF formulas disappear? How can I retain them after multiplying column D by '1?'
 

Attachments

  • Chandoo.org (Conditional Formatting).xlsx
    15.3 KB · Views: 2
this may work in cond formt

=vlookup(.....)<>$d7*1

the *1 OR +0 should change the text to a number
 

Attachments

  • Chandoo.org (Conditional Formatting) -ETAF.xlsx
    15.2 KB · Views: 3
this may work in cond formt

=vlookup(.....)<>$d7*1

the *1 OR +0 should change the text to a number

Brilliant. I couldn't get it to work the way you did it, so I tried multiply by 1 right after the VLOOKUP and it worked.

=VLOOKUP($B15,$L$15:$BD$2033,16,0)*1<>$I15
 
Back
Top