+ Reply to Thread
Results 1 to 18 of 18

Conditional formatting with color coding is not working

  1. #1
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Conditional formatting with color coding is not working

    Hi,



    I have a requirement to highlight the cells meeting a condition across and within two sets of 10 (Rows) x 6 (Columns) for two different scenarios. The formula i have used is working for one scenario but it is not working for the other one.



    Issue
    > The similar formula is working for Scenario 1 and it is not working for Scenario 2
    > The formula is just comparing the cells across the sets and not within the set

    Requirement:
    > The formula or script should identify the pair of numbers with same output within the set and outside the set as in above examples
    > The matching cells should be highlighted with same color


    Please check the attached workbook for all details including the formulas and examples.



    Kindly assist...!!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional formatting with color coding is not working

    I find this extremely hard to decipher, and your CFs are both numerous and complex.

    Can we go back to basics there may be a simpler solution.

    Would you give examples of which specific cells you wish to compare, why you choose the cells and what the rules for comparison are. Please write this down rather than some diagram.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    1.In the first scenario data tries to find the difference between left to left of c4 and d5 , right to right of c4 and d5 and then checks from left to left of c4 to c17 and
    right to right of d5 to d18

    2.In the second scenario data tries to find the difference between right of b39 and left of b41 ,left of b39 and right of b41 and then checks from right of b39 to left b52
    left of b39 to right of b52

    3. Actually the formula should find the difference of two sets of data and should highlight the same difference data from two sets of data

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional formatting with color coding is not working

    Hi,

    Sorry, I'm non the wiser. I've no idea why for instance comparing the digits of the two numbers in C4 & D5 apparently produce the two numbers 12 & 17. and then how you use that information. Then I don't know whether every one of the 60 numbser is compared with the other 59 numbers or just numbers on the row below or something else

    Remember that when you ask a question in a forum those of us who might be able to help know absolutely nothing about your system and work process or the terminology you use. Unless you have uploaded a workbook we know nothing about how it is laid out and little about what you want done with it or how the results should be presented.

    It always helps to explain what the data represents and then to know whether whatever it is if captured in a different layout might be easier to analyse. Don't assume that you're chosen methodology is the optimum. It may be but may not.

    Whilst these things are second nature to you since you live with the workbook all the working day we start with zero knowledge so you need to take us by the hand and explain in quite precise detail your aims and goals as well as stuff like how your data might look different in other situations.
    Don't assume we are able to "figure it out". We're usually quite good but not psychic.

    Put yourself in our position and think about whether what you've posted makes sense and is unambiguous to someone who's never seen it before. You are asking us for help so help us to be able to help you by providing all the information we need, even if that information seems obvious or intuitive to you.

  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
    81,007

    Re: Conditional formatting with color coding is not working

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I will do it for you today: https://chandoo.org/forum/threads/co...working.47000/.)
    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.

  6. #6
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    rules
    1 is addition of two nos which are in the same cell , after adding the two digits , second digit has to be taken or considered
    =IF(LEFT(A1,1)+RIGHT(A1,1)>=10,LEFT(A1,1)+RIGHT(A1,1)-10,(LEFT(A1,1)+RIGHT(A1,1)))

    2nd is difference between two nos which are in the same cell
    =IF(RIGHT(A1,1)>=LEFT(A1,1),RIGHT(A1,1)-LEFT(A1,1),(RIGHT(A1,1)+10-LEFT(A1,1)))

  7. #7
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    sorry for not detailing
    is there any option for screen sharing so that i can explain easily
    as i am not to explain the reason n rules n how it should compare the two sets of data

  8. #8
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Conditional formatting with color coding is not working

    @Richard Buttrey

    lets start with the top section (2 grids)

    the cells are colour formatted based on the difference between the numbers in the same position of grid 1 and 2... for example 99-66 = 33 (or perhaps i should say 77, if you use the table on the right) and is a dark red colour. so if you have another pair of numbers with a difference of 33 (77?) then they will also be dark red, and then you will have 4 cells with the same dark red colour... so this establishes that the difference between two relative cells will determine its colour, and that any other pair of relative cells with the same difference will also be the same colour.

    with that out of the way, lets look at the apparent "problem", it is claimed that the formula is not working.... HOWEVER... there appears to be a clue in the drawn lines between the short text formulas to the side.

    if you look quickly at the formulas for grids 1 and 2 you see there is direct lines drawn below 66 to 28, and from 80 to 42... whereas grids 3 and 4 are crossed 74 to 86 and crossed 73 to 76.

    so what i did was i switched all the numbers in grid 3 .. back to front of grid 1, and made sure that grid 4 was identical to grid 2... and all the colours line up on all 4 grids.

    except for A36 and A47, which is to demonstrate that the difference is based on the reverse of the number, not the number you see, in this case the difference is 13, which is light green.

    what these grids are for?... i have no idea... but it seems to be a puzzle

    i have attached the edited sheet.

    sidenote: i had seen this spreadsheet before, it was posted on Chandoo almost 2 years ago for exactly the same claimed issue of "formula not working", and asking users to "fix it", while a new thread just placed on 5/oct is persisting with the same claim.
    https://chandoo.org/forum/threads/co...g-issue.43575/
    Attached Files Attached Files
    Last edited by janmorris; 11-13-2021 at 04:37 PM. Reason: discovered the evidence i knew i had seen before

  9. #9
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    hi janmorris sir

    if u see the formulae for the grid 1 and 2 , it finds the difference of left and left of the cells , right and right of the cells and if both grids have the same difference in same positions it highlights same color in the both grids.
    in the grid 3 and 4 the difference from right to left of the cells and left to right of the cells , there is no same difference between the cells even though it is highlighting

  10. #10
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    numbers will be changing randomly and grid 1,2 is one group grid 3,4 are other group
    my problem is to highlight cells based on the difference and
    grid 1,2 have to find the difference between left to left and right to right
    grid 3,4 have to find the difference between right to left and left to right

  11. #11
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Conditional formatting with color coding is not working

    you say there is no "same difference", but the evidence speaks for itself... 11 difference is all bright pink.

    Screen Shot 2021-11-13 at 9.05.41 pm.png

  12. #12
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    sir am confused
    is there any other way of explaining like screen sharing something like that

  13. #13
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    sir try making the difference 18, 28 ,26 or some other no

  14. #14
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Conditional formatting with color coding is not working

    difference of 18 is white fading down to grey, 28 is white across to maroon, 26 is light blue.

    as i have already discovered how the colouring works, and you are unwilling to explain what the real problem is, i can not assist you further on this matter.

    good luck.

  15. #15
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    sir thank you so much u have come very close to my problem
    kindly notice in grid 1 and 2 ,some of the cells are highlighted with same colors within grid 1 and 2
    thats what for i have shown the examples. it will calculate according to the formula and within the grid also there ll be same difference between the cells sir
    the out put of formula is different and between cells the difference is different kindly notice grid 1 and 2 66 and 28 have same color 80 and 42 have same color and the output is 24 for both.
    it should check in grid 1 and then grid 2 then it should highlight sir
    now i ll upload another file kindly check it sir

    {the cells are colour formatted based on the difference between the numbers in the same position of grid 1 and 2... for example 99-66 = 33 (or perhaps i should say 77, if you use the table on the right) and is a dark red colour. so if you have another pair of numbers with a difference of 33 (77?) then they will also be dark red, and then you will have 4 cells with the same dark red colour... so this establishes that the difference between two relative cells will determine its colour, and that any other pair of relative cells with the same difference will also be the same colour.}
    Attached Files Attached Files
    Last edited by maniniinfotech; 11-15-2021 at 05:28 AM.

  16. #16
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    sir kindly look into the issue for one last time it should highlight the relative cells in the both grids

  17. #17
    Registered User
    Join Date
    09-24-2021
    Location
    india
    MS-Off Ver
    office 2007
    Posts
    11

    Re: Conditional formatting with color coding is not working

    its not the problem of conditional formatting
    it should highlight the cells which are related or relative to each other
    then only the cells should be highlighted
    i have tried to show the example in the attachment kindly go through the attachment
    for grid 1 and 2 i have explained
    grid 3 and 4 are not working as grid 1 and 2

  18. #18
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Conditional formatting with color coding is not working

    Crossposted at: https://chandoo.org/forum/threads/co...working.47000/

    Reminder to all looking at this thread. OP has consistently ignored moderator requests to follow forum rules.
    Last edited by alansidman; 12-27-2021 at 12:19 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Color Coding Numbers without volatile Conditional Formatting
    By cartica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2020, 01:49 PM
  2. [SOLVED] Count Cells By Color not working with conditional formatting.
    By Frigide in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 02-11-2019, 02:45 PM
  3. [SOLVED] Conditional Formatting and color coding a cell by the day in the week
    By JoshWinks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2018, 04:03 PM
  4. Conditional Color Scale Formatting Not Working
    By Merf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2015, 10:03 AM
  5. Replies: 5
    Last Post: 02-06-2015, 03:19 AM
  6. get the color coding in conditional formatting using VBA code
    By ammupriyaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 07:13 AM
  7. Conditional formatting with color coding dates
    By BlasphemousMusic in forum Excel General
    Replies: 7
    Last Post: 04-06-2011, 01:00 PM

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