+ Reply to Thread
Results 1 to 5 of 5

Colour to dispay based on the list of value selected in 2 column

  1. #1
    Registered User
    Join Date
    08-12-2015
    Location
    india
    MS-Off Ver
    2010
    Posts
    40

    Colour to dispay based on the list of value selected in 2 column

    Color to display based on the list of value selected in 2 column. defintion of the color are in the another sheet.

    Ref the excel attached for examples
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,611

    Re: Colour to dispay based on the list of value selected in 2 column

    You will need three CF (conditional formatting) rules, one for each colour:

    =OR(AND(A2="A",B2=1),AND(A2="b",B2=2))

    =AND(A2="c",B2=3)

    =AND(A2="d",B2=4)
    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
    Registered User
    Join Date
    08-12-2015
    Location
    india
    MS-Off Ver
    2010
    Posts
    40

    Re: Colour to dispay based on the list of value selected in 2 column

    Ali Thanks, it worked perfectly.

    for the blank rows, the formula column is displaying #N/a, how to get rid if this ?

  4. #4
    Registered User
    Join Date
    12-10-2018
    Location
    Canada
    MS-Off Ver
    Microsoft 365
    Posts
    55

    Re: Colour to dispay based on the list of value selected in 2 column

    Quote Originally Posted by chakkaravarthy.m View Post
    Ali Thanks, it worked perfectly.

    for the blank rows, the formula column is displaying #N/a, how to get rid if this ?
    add an =iferror(formula),"result you want")

    example

    =Iferror((formula),0)

    will turn your #N/A to 0

  5. #5
    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,959

    Re: Colour to dispay based on the list of value selected in 2 column

    Based on Ali's suggestions...
    =OR(A2="",B2="",.........
    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. Duplicates - selected column - highlighting - colour
    By SpiNNer12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2019, 08:06 PM
  2. [SOLVED] Return data from a specific column based on what's selected from a drop down list
    By Iain Garey in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-01-2018, 02:00 PM
  3. [SOLVED] Changing the colour of selected cells based on a single value
    By gpktm in forum Excel General
    Replies: 5
    Last Post: 02-26-2017, 11:04 PM
  4. Copy selected colour items from one column to another by vba
    By anindya.zen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-25-2014, 01:37 AM
  5. Activate worksheet based on a column value selected from validation list
    By jnbroek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 11:05 PM
  6. more than 11 digits dont dispay in listbox column
    By biznez1 in forum Excel General
    Replies: 2
    Last Post: 07-30-2013, 11:53 AM
  7. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 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