+ Reply to Thread
Results 1 to 8 of 8

And formula not working with conditional formatting

  1. #1
    Registered User
    Join Date
    11-29-2018
    Location
    Bellingham
    MS-Off Ver
    2016
    Posts
    7

    And formula not working with conditional formatting

    Hello. I'm having trouble with this formula. I'm trying to highlight cells in a column if the column says "2018" and if the column next to it says "Prime". It's not working for me.

    The formula I used is =AND(C2="2018",D2="Prime")

    I also highlighted cells C2:C27 which is the "release" column (column a is hidden)
    Attached Images Attached Images

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: And formula not working with conditional formatting

    Did you try using C2=2018 without the quotes?

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: And formula not working with conditional formatting

    May be:
    =AND($C2="2018",$D2="Prime")
    Quang PT

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: And formula not working with conditional formatting

    It looks like your years in column C are proper numbers (aligned to the right), so you do not need to put quotes around 2018 in your CF formula, as this will convert it to a text value. Try it like this:

    =AND(C2=2018,D2="Prime")

    Hope this helps.

    Pete

  5. #5
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: And formula not working with conditional formatting

    Another thought is, is the date in Column C actually a year only or is it a full date with the cell only formatted to display the year?

  6. #6
    Registered User
    Join Date
    11-29-2018
    Location
    Bellingham
    MS-Off Ver
    2016
    Posts
    7

    Re: And formula not working with conditional formatting

    Yeah I tried removing the quotes from each one separately then from both.

  7. #7
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: And formula not working with conditional formatting

    Leave the quotes around Prime as it is text. What is actually stored in cell C2? Is it a full date?

  8. #8
    Registered User
    Join Date
    11-29-2018
    Location
    Bellingham
    MS-Off Ver
    2016
    Posts
    7

    Re: And formula not working with conditional formatting

    That worked. I tried that earlier but it didn't work but when I copied your text to my formula bar it worked. Thanks

+ 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. [SOLVED] Conditional Formatting formula not working
    By panama74 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-12-2018, 05:19 PM
  2. =if(and(... formula in conditional formatting dialogue box not working...
    By ChrisCD in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2016, 02:22 AM
  3. [SOLVED] Conditional Formatting Not Working With Formula
    By markd038 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2014, 04:05 AM
  4. Conditional Formatting Formula Not Working Properly
    By Oscar Martin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2014, 08:59 AM
  5. AND in Conditional Formatting Formula not working
    By readyemail in forum Excel General
    Replies: 11
    Last Post: 11-30-2010, 06:00 PM
  6. using a formula in conditional formatting not working
    By missmischa in forum Excel General
    Replies: 4
    Last Post: 02-22-2010, 06:04 PM
  7. Conditional Formatting with LARGE formula not working
    By peri1224 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2010, 09:47 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