+ Reply to Thread
Results 1 to 3 of 3

Conditional Format - dynamic range

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Conditional Format - dynamic range

    A1=23
    A2=4

    I want to put a Conditional Format (fill range with a color) from A5 to 4 cells to right and 23 cells down

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Format - dynamic range

    Highlight A5:Z100 (or however far you expect the Conditional Formatting to go > Conditional Formatting > New Rule > Use a formula
    =AND(COLUMNS($A:A)<=$A$2+1,ROWS($1:1)<=$A$1+1)
    Format: Fill color of your choice > OK > OK

    This assumes that by "4 columns to the right", you didn't want to include column A. If you did, get rid of the +1's.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,809

    Re: Conditional Format - dynamic range

    The refersto range needs to be absolute range.
    Even if you enter a named range in the refersto box, it will be converted to a static range.

+ 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. [SOLVED] VBA to apply conditional format to dynamic range
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2018, 03:29 AM
  2. Replies: 7
    Last Post: 03-24-2015, 07:44 AM
  3. Conditional format to dynamic color.
    By Flaghacker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-30-2014, 10:56 PM
  4. [SOLVED] Conditionally Format Dynamic Range
    By hamidxa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2014, 12:43 PM
  5. [SOLVED] Dynamic MultiColumn Conditional Format
    By ClickitySplit in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2014, 01:21 PM
  6. Replies: 7
    Last Post: 11-14-2011, 07:44 PM
  7. Define dynamic range for format
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2011, 07:13 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