+ Reply to Thread
Results 1 to 27 of 27

Conditional Formatting Problem Solving

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

    Unhappy Conditional Formatting Problem Solving

    Forum - RPPF-CS-Dissolution Calculation Sheet for S1,S2 & S3-01.xlsxForum - RPPF-CS-Dissolution Calculation Sheet for S1,S2 & S3-01.xlsx

    Can it be possible to make conditional formatting by using these logic -

    Each unit should be more than 80% and

    Not more than 2 units are less than 65% and

    No unit is less than 55%

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

    Re: Conditional Formatting Problem Solving

    In your example, which region contains the percentage sign (%)?
    Where would you like to apply color?
    Please manually color the area you want to highlight.
    Quang PT

  3. #3
    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,916

    Re: Conditional Formatting Problem Solving

    Welcome to the forum.

    What type of conditional formatting? Where should it appear? Please mock up manually what you expect it to look like.
    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.

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

    Re: Conditional Formatting Problem Solving

    Sure. I am uploading it after correction

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

    Re: Conditional Formatting Problem Solving

    Here in my excel, i have coditions between H4 cell and H24 cell.
    I want to make red color if any cell between G4 cell to G30 cell does not follow the condition of cell between H4 and H24.
    Thank you bebo021999Forum - RPPF-CS-Dissolution Calculation Sheet for S1,S2 & S3-01.xlsx

  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,916

    Re: Conditional Formatting Problem Solving

    There is no red highlighting that has been added - please add it MANUALLY where you expect to see it so that we can creat a CF rule for you.

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

    Re: Conditional Formatting Problem Solving

    So, for the range G4:G27, set default color to RED.
    Then, there are 3 criteria to turn from RED to other color:

    1) "No unit is less than 55": should be the min >55:
    G29>=H23

    2)"Not more than 2 units are less than 65"
    COUNTIF($G$4:$G$27,"<65")<=2

    3) Each unit should be more than 80: total unit = 24, minus 2 units can be <65, the last 22 units must be greater than 80
    COUNTIF($G$4:$G$27,">80")>=22

    combination of three criteria:
    Please Login or Register  to view this content.
    set color to "No color" or gray

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

    Re: Conditional Formatting Problem Solving

    Thanks a lot bebo021999.
    I need one more solution please. If you check this, it would be a great relief for me. I changed the conditional formatting color from the file you provided me. But all the G4:G27 cell are being shown red. But it needs to change color only those cell which follow the "=AND($G$29>=$H$23,COUNTIF($G$4:$G$27,"<65")<=2,COUNTIF($G$4:$G$27,">80")>=22) "Excelforum - RPPF-CS-Dissolution Calculation Sheet for S1,S2 & S3-01 (1).xlsx

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

    Re: Conditional Formatting Problem Solving

    No, you are set color to red, both: default and conditional formating.
    Set grey (or other color other than red) for conditional formating.
    Attached Images Attached Images
    Last edited by AliGW; 11-28-2023 at 04:37 AM. Reason: Please do NOT quote unnecessarily! Use the QUICK REPLY button instead.

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

    Re: Conditional Formatting Problem Solving

    But all the G4:G27 cell are being shown grey. But it needs to change color only those cell which follow the "=AND($G$29>=$H$23,COUNTIF($G$4:$G$27,"<65")<=2,COUNTIF($G$4:$G$27,">80")>=22) " not all the cells

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

    Re: Conditional Formatting Problem Solving

    Actually i should be like this. All the G4:G27 cell are being shown grey. But it needs to change color only those cell which follow the "=AND($G$29>=$H$23,COUNTIF($G$4:$G$27,"<65")<=2,COUNTIF($G$4:$G$27,">80")>=22) " not all the cells Attachment 850784

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

    Re: Conditional Formatting Problem Solving

    You should make a sample, to color cells with BOTH, grey AND red color.

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

    Re: Conditional Formatting Problem Solving

    2_Excelforum - RPPF-CS-Dissolution Calculation Sheet for S1,S2 & S3-01 (1).xlsxHere it is bebo021999
    Thanks for your support. I want to change those cell color red which does follow "=AND($G$29>=$H$23,COUNTIF($G$4:$G$27,"<65")<=2,COUNTIF($G$4:$G$27,">80")>=22) " and other cell will remain gray color.

  14. #14
    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,916

    Re: Conditional Formatting Problem Solving

    Cf rule for G4:

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

    Applies to: =$G$4:$G$27

  15. #15
    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,916

    Re: Conditional Formatting Problem Solving

    Any good???

    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.

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

    Re: Conditional Formatting Problem Solving

    Still its not working . I am checking the excel. I do not understand why its not working properly

  17. #17
    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,916

    Re: Conditional Formatting Problem Solving

    So no 'thanks for your help', then?

    It is working in my attachment. Did you look at that? Maybe you didn't copy the formula correctly. I cannot tell you why it's not working correctly unless you show me an example of it not working.

  18. #18
    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,916

    Re: Conditional Formatting Problem Solving

    The attached has the other cells in grey - is this what was 'wrong'?

    If not, I have no clue what 'not working properly' means.

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

    Re: Conditional Formatting Problem Solving

    Thanks a lot for your support.

    Here in H12 cell i changed the value to 80. The previous value is 59 from the file you provided me. Then i changed the value of 59 to 80. So when i put 80, then see G4:G27 , i have only 2 values which follows the condition from the limit column. But nevertheless it shows color in G16 and G20 cell from conditional formatting. But that was not going to happen. Cause only 2 values are less then 65. It should colored the cell from conditional formatting when more than 2 unit are less then 65.

    In the limit column it says - "Not more than 2 units are less than 65 and No unit is less than 55" .
    I have attached the sample in screenshotAttachment 850800

  20. #20
    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,916

    Re: Conditional Formatting Problem Solving

    So just change the rule to this:

    =OR($G4<=80,COUNTIF($G$4:$G$27,"<"&65)>2,COUNTIF($G$4:$G$27,"<"&55)>=1)
    Last edited by AliGW; 11-28-2023 at 05:07 AM.

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

    Red face Re: Conditional Formatting Problem Solving

    I am giving you two screen shots.

    Here in G11, G16, G20 cells values are 80, 65, 63 from the last excel you provided me. Here its showing about red color white font. But that does not supposed to happen. Cause it follows only 2 values are less then 65.
    789.PNG

    But it was supposed to happen like this cause only 2 units are less then 65 159.PNG

    But when more then 2 units are less then 65 then it would show red color white font color. 357.PNG

  22. #22
    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,916

    Re: Conditional Formatting Problem Solving

    Forget the grey shading for now, just focus on the red.

    Does this do what you want?

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

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

    Re: Conditional Formatting Problem Solving

    Thanks a lot AliGW . Its working now <3 . Bothered you a lot. You two guys helped a lot. Too much grateful to you.

  24. #24
    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,916

    Re: Conditional Formatting Problem Solving

    Attached with grey fill also applied.

    Glad to have helped.

    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.

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

    Re: Conditional Formatting Problem Solving

    I already marked this thread as SOLVED.
    Can you go through my another thread? No one is responsing.

    https://www.excelforum.com/excel-for...ific-cell.html

  26. #26
    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,916

    Re: Conditional Formatting Problem Solving

    I can't help you with the other query. Sorry.

    Please be patient. This isn't a paid service and we are all volunteers.

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

    Re: Conditional Formatting Problem Solving

    Sure, its okay. What you helped for that i am too much grateful to you.

+ 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. I Need Help Solving This Problem
    By zZPingZz in forum Excel General
    Replies: 3
    Last Post: 07-09-2016, 09:04 AM
  2. [SOLVED] Solving a time problem with conditional formatting
    By smig123 in forum Excel General
    Replies: 4
    Last Post: 02-03-2014, 10:59 AM
  3. I need a help in solving this problem
    By jkarthi22 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-24-2007, 11:36 AM
  4. Solving Problem
    By jocpinmn in forum Excel General
    Replies: 2
    Last Post: 05-26-2007, 10:13 AM
  5. Need help solving this problem
    By Stan T in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2006, 03:09 PM
  6. [SOLVED] Conditional Problem Solving
    By Andrew in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-14-2006, 12:45 AM
  7. Replies: 1
    Last Post: 02-04-2006, 06:10 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