+ Reply to Thread
Results 1 to 13 of 13

conditional formatting (voorwaardelijke opmaak)

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    11

    conditional formatting (voorwaardelijke opmaak)

    I have a problem with conditional formatting (see attachment).

    In tab2 I created a drop down list with 3 options using Data Validation.
    The 3 options (Low, Moderate and High) refer to the status of 10 locations (A1 until A10).

    What I would like is that my locations A1 until A10 in tab1 change colour when the status of this location in tab2 changes
    Low = Orange
    Moderate = Red
    High = Bleu

    Using conditional formatting I managed to get this done for my first location A1.
    However, I'm not able to copy this condition to all other cells.

    Who can help me?
    Attached Files Attached Files

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

    Re: conditional formatting (voorwaardelijke opmaak)

    First, remove the dollar sign from your CF formulae. Go from this:

    =Blad2!$B$2="Low"

    to this:

    =Blad2!$B2="Low"

    Do this for all three.

    Next, in the applies to box for each CF rule, put this:

    =$A$1:$A$10

    All done!
    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
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: conditional formatting (voorwaardelijke opmaak)

    You need to remove the $ signs from the formula in CF then you can copy the format with format painter.Since you need to paint many cells you must double click the pain painter.See the attached.
    Last edited by ImranBhatti; 02-14-2017 at 05:17 PM.
    Teach me Excel VBA

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

    Re: conditional formatting (voorwaardelijke opmaak)

    Imran - sorry for this off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: conditional formatting (voorwaardelijke opmaak)

    Got it.Would be taken care of in future.

  6. #6
    Registered User
    Join Date
    02-14-2017
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    11

    Re: conditional formatting (voorwaardelijke opmaak)

    Thank you AliGW!

    However, when I implement it horizontally (see attachment) it does not work anymore.

    Could you help me?

  7. #7
    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,830

    Re: conditional formatting (voorwaardelijke opmaak)

    Change the CF formulae to this:

    =VLOOKUP(A$1,Blad2!$A$2:$B$11,2,0)="Low"
    =VLOOKUP(A$1,Blad2!$A$2:$B$11,2,0)="Moderate"
    =VLOOKUP(A$1,Blad2!$A$2:$B$11,2,0)="High"

  8. #8
    Registered User
    Join Date
    02-14-2017
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    11

    Re: conditional formatting (voorwaardelijke opmaak)

    Thank you so much!

    Final question, is there a formula to make it work from bottom to top?
    Like this?

    A10
    A9
    A8
    A7
    A6
    A5
    A4
    A3
    A2
    A1

  9. #9
    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,830

    Re: conditional formatting (voorwaardelijke opmaak)

    It should work either way. If not, try this:

    =INDEX($B$1:$B$11,MATCH(A$1,Blad2!$A$1:$A$11,0),0)="Low"

  10. #10
    Registered User
    Join Date
    02-14-2017
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    11

    Re: conditional formatting (voorwaardelijke opmaak)

    It is not working out (see attachment)
    What is it that I do wrong?
    Attached Files Attached Files

  11. #11
    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,830

    Re: conditional formatting (voorwaardelijke opmaak)

    A few things!

    =INDEX(Blad2!$B$2:$B$11,MATCH($A1,Blad2!$A$2:$A$11,0),0)="Moderate"

    Adapt the other rules to match.

  12. #12
    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,830

    Re: conditional formatting (voorwaardelijke opmaak)

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

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: conditional formatting (voorwaardelijke opmaak)

    Quote Originally Posted by ImranBhatti View Post
    Got it.Would be taken care of in future.
    no, you need to fix that now please
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  2. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  3. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  4. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  5. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  6. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  7. Opmaak via Celstijlen
    By Crolus in forum Non English Excel
    Replies: 3
    Last Post: 11-16-2008, 09:21 AM

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