+ Reply to Thread
Results 1 to 3 of 3

Relative reference in conditional formatting

  1. #1
    Registered User
    Join Date
    03-22-2019
    Location
    Portland, Oregon
    MS-Off Ver
    Mac 2016
    Posts
    58

    Relative reference in conditional formatting

    I am trying to apply a pattern to multiple cells when a date is entered in one particular cell. I need to use relative reference because the block of cells needs to be copied and pasted as needed.

    In the attached, the vertical line pattern is present because the formula in conditional formatting is:

    Please Login or Register  to view this content.
    Note that the COPY of these cells does NOT have a date in L18, so the lines should not be there. But they are, of course, because the cell reference $L$6 is absolute. But if I just use L6 when entering the conditional format with all cells selected, the formatting does not work except in one cell.

    The only way I can find to make this work is to enter =ISNUMBER(L6) in EVERY single cell, individually. I have tried $L6 and L$6 and neither work.

    Is there any other way to do this? I have multiple sections like this, all of which need to be copied and pasted often. So to enter the formatting for each cell individually would require a few hundred entries.

    (Note: the copy and pasting function in my spread sheet is performed by a macro. So if there is an easy way to put this in the macro code, I'm all ears.)
    Attached Files Attached Files

  2. #2
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    179

    Re: Relative reference in conditional formatting

    Hi,

    So for me, it actually worked with "$L6", you just need to edit every single ROW to that, and not every single cell.
    So when you copy down, every Row will bring the 6 down to 18. (They always sum the number of cells you're going down).

    Try changing the conditional formattings to be based by rows, and not cell by cell.
    John.

    "I excel at jumping to conclusions"

  3. #3
    Registered User
    Join Date
    03-22-2019
    Location
    Portland, Oregon
    MS-Off Ver
    Mac 2016
    Posts
    58

    Re: Relative reference in conditional formatting

    Thanks! That helps a lot. I'm guessing that may be the best I can get, which requires only a handful of entries rather than 30 or 40 per template.

+ 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. Conditional Formatting using Data Bars giving me Relative Reference Error
    By excelstudent74 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2013, 12:58 PM
  2. Conditional format with relative reference problem
    By lc130 in forum Excel General
    Replies: 10
    Last Post: 10-03-2012, 08:46 AM
  3. Formatting based on relative reference
    By bdb484 in forum Excel General
    Replies: 5
    Last Post: 03-26-2011, 01:37 PM
  4. Replies: 1
    Last Post: 04-30-2010, 09:42 AM
  5. Excel 2007 : Relative reference conditional formatting
    By Tsaukpaetra in forum Excel General
    Replies: 2
    Last Post: 01-19-2010, 07:41 PM
  6. [SOLVED] Conditional Formatting with Relative Reference.
    By Swiatkowski Peter in forum Excel General
    Replies: 1
    Last Post: 12-15-2005, 11:15 PM
  7. Conditional Formatting with Relative Reference.
    By Swiatkowski Peter in forum Excel General
    Replies: 5
    Last Post: 12-15-2005, 05:30 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