+ Reply to Thread
Results 1 to 4 of 4

Macro to set value based on range of different cells with background color.

  1. #1
    Registered User
    Join Date
    01-25-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Post Macro to set value based on range of different cells with background color.

    Hi All,

    I'm new to the Forum and glad that I'm in as there are so much everyone can learn using the information in here.

    I would like some help re the below query pls.?

    I have a set of cells which has background colors using conditional formatting. Depending upon the colors in the range, it should return a specific value on a different cell. There are 4 colors in my example and priority of colors are red, yellow, blue and Green. If range of cells contain all 4 colors then return "L1" as value as red is considered highest priority, if range contains only 3 colors then return "L2" as its the next priority and so on.

    The background colors are subject to change in the range as it has conditional formatting on those cells.

    Can someone help pls?

    With excel spreadsheet details.

    Let me know if you require any additional info.

    Many thanks in advance

    Prem
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro to set value based on range of different cells with background color.

    Due to the nature of macros and conditional formatting what you are asking to do is actually very difficult if not impossible. I would suggest you maybe try to eliminate the use of conditional formatting and maybe apply a macro that does the coloring and the rest. Let me know your thoughts.

  3. #3
    Registered User
    Join Date
    01-25-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro to set value based on range of different cells with background color.

    Thanks for looking into it.

    Is it possible to do it if the cell is manually colored pls.?

  4. #4
    Registered User
    Join Date
    01-25-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro to set value based on range of different cells with background color.

    Can anyone help pls? Thanks prem

+ 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. Macro to copy rows based on background color of cells within a range of columns
    By jpitt916 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2013, 06:16 PM
  2. [SOLVED] Macro to copy rows based on background color of cells within a range of columns
    By Chrispelletier in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-19-2013, 01:30 PM
  3. [SOLVED] Color Index to sum up cells based on background color
    By jph89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2013, 03:23 PM
  4. background cell color based on number range
    By cjpref in forum Excel General
    Replies: 1
    Last Post: 09-01-2012, 09:01 AM
  5. [SOLVED] Macro to change all cells with a certain background color in another background color
    By kevinvzandvoort in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2012, 11:04 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