+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting - Relative Reference - Icon Sets

  1. #1
    Registered User
    Join Date
    10-12-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Conditional Formatting - Relative Reference - Icon Sets

    Hi,

    I'm working off of data in a single column.

    I want to apply the conditional formatting (icon set) to the top 15 rows, depending on what the value of the cell is in row 16 - 30, or 31-45.

    So for example

    A1 = 1500
    A16 = 1300
    A31 = 1200

    I would want the "green arrow" for A1 because 1500 is more than A16.

    A2 = 1300
    A17 = 1400
    A31 = 1200

    I would want the "yellow arrow" for A2 because 1300 is less than A17, but more than A31.

    Now, I can do the above via the conditional formatting icon set currently. However, I want to copy the relative reference down the list and to the next 5 columns.

    How do I do this relative reference conditional formatting copy?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Conditional Formatting - Relative Reference - Icon Sets

    I tried playing with the icon sets but Excel told me (very specifically) "You cannot use Relative References with Conditional Formatting using Color Scales, Data Bars and Icon Sets.
    Attached is an example using basic Conditional Formatting (I changed background color, you could change font color). You need to set up the formulas for each set (1-15,16-30,31-45) separately. For example, Select A1:A15 and Conditional Formatting >New Rule>Use Formula

    Green: =A1>MAX(A16,A31)
    Yellow: =AND(A1>MIN(A16,A31),A1<MAX(A16,A31))
    Red: =A1<MIN(A16,A31)

    Does that work for you?
    Attached Files Attached Files
    ChemistB
    My 2

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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