+ Reply to Thread
Results 1 to 9 of 9

Conditional formatting according to the value of another cell and four different condition

  1. #1
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Conditional formatting according to the value of another cell and four different condition

    Hi all

    I hope, this time my post title is concise and explicit.
    I found a lot of conditional formatting similar to what I need but none so complex, so I tried to apply a conditional formatting based on the value of another cell with multiple conditions.
    I will try to explain.

    In column D I have a list of types. A list of 61 total different types, that can appear as duplicates and not in order.
    For each type in column D, I have 4 different values in 4 different columns E,F,G and H.
    The column where I want to apply conditional formatting is column D in the following form:

    If D2 =1 and meets the conditions applied for Val 1 (column E2) - than D2 should become color yellow; If D2 =1 and meets the conditions applied for Val 1 & Val2, than D2 should become light green ; If D2 =1 and meets the conditions for Val 1&Val2& Val3, than D2 should become green; and lastly...if D2=1 and meets the conditions for Val 1&Val 2& Val3& Val4...it should turn red.
    If D2 =2 and meets the conditions applied for Val 1 (column E2) - than D2 should become color yellow; If D2 =2 and meets the conditions applied for Val 1 & Val2, than D2 should become light green ; If D2 =2 and meets the conditions for Val 1&Val2& Val3, than D2 should become green; and lastly...if D2=2 and meets the conditions for Val 1&Val 2& Val3& Val4...it should turn red... AND SO ON FOR ALL 61 TYPES.

    On the right I have an example of conditions that each column ( VAL1, VAL2, VAL3 & Val 4) have to meet.
    NOTE : Each TYPE (1-61) has different conditions to meet for each VAL (even if in the table is not).

    I'm sure it's not easy even for someone with good knowledge of excel, and practically impossible for me to solve something like this.
    Thanks in advance.
    Attached Files Attached Files
    Many thanks to all who have helped me.

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Conditional formatting according to the value of another cell and four different condi

    Hello
    Can we change the format in which you type the condition?
    i.e. in column M instead of repeatedly writing >=20 can we just write 20 if the condition is same for all the numbers??
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting according to the value of another cell and four different condi

    Thanks for your quick intervention sourabhg98.
    The problem is that the condition is not identical for all types.
    May occur different types have the same value for condition. But are different types.
    The table on the right is just to explain, the real values may be different.

    But if you want to do a test ..you're welcome.

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Conditional formatting according to the value of another cell and four different condi

    So this means that instead of greater than or equal to it can be smaller than too in the column m or o?

  5. #5
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting according to the value of another cell and four different condi

    Unfortunately ... but please, expose your idea, saying that the values are greater than or equal.
    Maybe if we can use something like VLOOKUP FOR D2 in the table to check the condition.
    Maybe I say something stupid

  6. #6
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting according to the value of another cell and four different condi

    Or maybe another approach ??

  7. #7
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Conditional formatting according to the value of another cell and four different condi

    Ok, So I gave a try
    please check the attached file...if this was what you required...
    Column Q to AA are all formulas....
    Attached Files Attached Files

  8. #8
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting according to the value of another cell and four different condi

    Hi sourabhg98

    First I want to thank you for your help and apologize for my late response, but I had to check well if is exactly what I need. And yes, it is exactly what I need.
    I like your approach and I must admit that you did an excellent job.
    Many thanks again.

  9. #9
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Conditional formatting according to the value of another cell and four different condi

    You are most welcome!!
    Thanks for the reputation!

+ 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 for 2 condition
    By MyOnion in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-18-2013, 03:29 AM
  2. Replies: 2
    Last Post: 06-01-2012, 06:36 PM
  3. Detect cell conditional formatting state of specific condition
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-30-2009, 05:57 PM
  4. [SOLVED] Conditional formatting - on an empty cell condition in _another_ cell?
    By StargateFan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-29-2006, 04:00 PM
  5. 4 condition conditional formatting
    By jeffg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2005, 02:05 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