+ Reply to Thread
Results 1 to 4 of 4

Very Custom Conditional Formatting with cell range, Help!

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    Surabaya, Indonesia
    MS-Off Ver
    MS 365 (Windows 11 64-bit)
    Posts
    84

    Very Custom Conditional Formatting with cell range, Help!

    Hi All,

    I need help for conditional formatting with certain criteria, illustration below..

    so I have this table, grey area, from B4:J15, with the header excluded.
    I want to, when I fill M1 and P1, within the grey area, it will become green from M1 and P1, there'll be no value between them.
    as well as M2 and P2.

    My logic is,
    1st, detect where & what value column M1 is, Green if column () > = column M1
    2nd, detect where & what value column P1 is, Green if column() < = column P1

    so it will detect M1 =< green <= P1, as well as M2 & P2, but I don't know how to make it in conditional formatting, anyone can help me?
    I'm not expecting any VBA code in this, if possible. If it Must be VBA, help me with the code

    ConditionalFormatting.JPG


    Thanks a lot
    Last edited by radian89; 11-28-2015 at 04:51 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Very Custom Conditional Formatting with cell range, Help!

    Is always M1 first? Attach a sample excel file with some more examples if possible
    Last edited by samba_ravi; 11-28-2015 at 04:59 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    11-12-2015
    Location
    Surabaya, Indonesia
    MS-Off Ver
    MS 365 (Windows 11 64-bit)
    Posts
    84

    Re: Very Custom Conditional Formatting with cell range, Help!

    Quote Originally Posted by nflsales View Post
    Is always M1 first?
    Yes, M1 and M2 always first.... and end it with P1 or P2,

    if M1 - P2 it won't work/happened, and vice versa

  4. #4
    Registered User
    Join Date
    11-12-2015
    Location
    Surabaya, Indonesia
    MS-Off Ver
    MS 365 (Windows 11 64-bit)
    Posts
    84

    Re: Very Custom Conditional Formatting with cell range, Help!

    I've found the solution of this. here's step by step to solve the riddle

    1. I add another helper table for this. see picture below. The task is to detect in what column do "M1" and "P1" exist in a certain row, and tell it with column number

    ConditionalFormatting2.JPG

    2. the function to show the column number is

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    minus (-) after row(), is meant to address you the row that you need to detect. A7 : BA7 is to search where M1, P1, M2, P2, is placed

    3. after that, just block all the column / area where you want the conditional formatting rules. and use this function in conditional formatting.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A96 refers to step no 2, and sign >= for M1, and <= for P1, basically it tells M1 =< Green <= P1 (the color will be green)

    Done~

    Hope it helps.

    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. Conditional Formatting a cell range
    By Abarency in forum Excel General
    Replies: 2
    Last Post: 12-12-2014, 11:21 AM
  2. Conditional Custom Cell Formatting
    By Eunicexcel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-16-2014, 03:42 PM
  3. Help with Conditional formatting in a cell range.
    By abaumgartner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2013, 06:25 PM
  4. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  5. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  6. Conditional Date Formatting with a Custom Cell Format
    By kqueen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2012, 01:48 PM
  7. Conditional Formatting - Grey Out and Lock A range based on a cell value in that range
    By Excelgnome in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2012, 07:31 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