+ Reply to Thread
Results 1 to 5 of 5

Coloring area based on values

  1. #1
    Registered User
    Join Date
    10-15-2018
    Location
    Denmark
    MS-Off Ver
    10
    Posts
    14

    Coloring area based on values

    Hi,

    I have the following table on the attached workbook.2020-02-10_11-58-15.jpg

    Can you help me how excel can automatically color the week cells, based on the entered start and end week?

    Thanks!
    Attached Files Attached Files
    Last edited by JoakimBugge; 02-10-2020 at 07:25 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Coloring area based on values

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Coloring area based on values

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    1
    Month
    Jan
    Feb
    Mar
    2
    Week
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    3
    Start week End week
    4
    1
    7
    5
    5
    11
    6
    3
    8


    Macro colouring weeks as declared colour in col A.
    Attached Files Attached Files
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Coloring area based on values

    You can do it in one operation using conditional formatting with this rule:

    =AND(C$2>=$A4,C$2<$B4)

    This should apply to the range $C$4:$R$5, though this will just give you one fill colour for that range.

    Hope this helps.

    Pete

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Coloring area based on values

    Agreeing with Pete but a slight amendment
    =AND(C$2>=$A4,C$2<=$B4)

+ 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. Coloring rows based on values in columns (+ wildcards)
    By astrbac in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2014, 09:23 AM
  2. [SOLVED] Coloring rows of cells based on certain cell values
    By tottieon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2014, 01:00 PM
  3. [SOLVED] Conditional Formatting - Coloring Cells based on Values
    By desibabuji in forum Excel General
    Replies: 8
    Last Post: 11-22-2013, 12:31 PM
  4. Coloring Interior Fill based on range values
    By Jasrenkai in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-29-2011, 08:18 PM
  5. Excel 2007 : Coloring area in line chart
    By SoftwareTester in forum Excel General
    Replies: 1
    Last Post: 04-16-2010, 04:25 AM
  6. Custom Coloring an area chart with VBA
    By mattdick in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-06-2009, 11:24 AM
  7. Coloring Chart Area Dynamically?
    By silver23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2005, 12:05 AM

Tags for this Thread

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