Forum Discussion

matthew baker's avatar
matthew baker
Copper Contributor
Sep 25, 2018
Solved

Conditional formatting using data from 2 different cells

Hello, I am trying to conditionally format a cell to change fill color if it's own value equals "0:00" AND if another specific cell of my choosing has any value. What would be the best way to do this? Thanks!

  • BobOrrell's avatar
    BobOrrell
    Sep 26, 2018

    the second one, =AND(A1=0,B1<>"") is working for me, with the format as Time

5 Replies

  • BobOrrell's avatar
    BobOrrell
    Iron Contributor

    It actually depends on how your data is formatted in the "0:00" column. If it's formatted as text then you would use =AND(A1="0:00",B1<>""), but if it's a number, you should be able to use =AND(A1=0,B1<>""). Keep in mind that A1 and B1 in this formula will need to be changed to the appropriate cells for your data.

    • matthew baker's avatar
      matthew baker
      Copper Contributor

      It's actually formatted for "Time". I tried the suggested formula but it didn't work. Is there a different format need for a "Time" format?

      • BobOrrell's avatar
        BobOrrell
        Iron Contributor

        the second one, =AND(A1=0,B1<>"") is working for me, with the format as Time

Resources