+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting Problem

  1. #1
    Registered User
    Join Date
    11-27-2023
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    21

    Conditional Formatting Problem

    In this Excel, I want to add these two conditions through conditional formatting.
    Here, I have two conditions.
    1.
    Not more than 2 cells from B4 to B27 can fall below 65.
    2. No cell can go below 55.

    If more than 2 cells fall below 65 then only those cells falling below 65 will turn red.
    If any cell falls below 55 then the cell will turn red. And these two conditions can be applied combinedly.
    New_RPPF-CS-Dissolution Calculation Sheet for S1,S2 & S3.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Conditional Formatting Problem

    CF rule for B4:

    =OR(AND(COUNTIF($B$4:$B$27,"<"&65)>2,B4<65),COUNTIF($B$4:$B$27,"<"&55)>0)

    Applies to: $B$4:$B$27
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-27-2023
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    21

    Re: Conditional Formatting Problem

    I changed one of your provided value to 54 and all cells of B4 to B27 turned red. But in this case i need only that cell turn red which is below 55.
    Attachment 852829

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Conditional Formatting Problem

    But you said if ANY cell is below 55 - that means ALL cells need to change.

    You really ought to have been able to work this out yourself from all the work I did in your last thread!

    Try this:

    =OR(AND(COUNTIF($B$4:$B$27,"<"&65)>2,B4<65),AND(COUNTIF($B$4:$B$27,"<"&55)>0,B4<55))

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Conditional Formatting Problem

    Here's the formula I gave you last time:

    =OR(AND($G4<80,COUNTIF($G$4:$G$27,"<"&65)>2),AND($G4<80,COUNTIF($G$4:$G$27,"<"&55)>=1))

    All that you needed to do was change cell references and one value!!! Were you really not able to do this yourself???

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Conditional Formatting Problem

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  7. #7
    Registered User
    Join Date
    11-27-2023
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    21

    Re: Conditional Formatting Problem

    Actually it was not working for these two conditions. I could not figured it out where was the problem. Thanks AliGW, its now working.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Conditional Formatting Problem

    It was working when you signed off your last thread on this issue!

    Please mark this thrdead as SOLVED.

+ 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 Problem
    By cosmica67 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-28-2023, 12:28 AM
  2. Conditional Formatting Problem
    By dave6726 in forum Excel General
    Replies: 4
    Last Post: 04-02-2011, 06:51 AM
  3. Conditional Formatting problem
    By KINNEY0201 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2010, 07:16 PM
  4. [SOLVED] Conditional formatting problem
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2010, 08:39 PM
  5. Conditional formatting problem
    By Overlord in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2009, 06:01 PM
  6. Conditional Formatting problem
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2008, 02:18 PM
  7. Conditional formatting problem
    By Vivecat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2007, 01:37 PM

Tags for this Thread

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