+ Reply to Thread
Results 1 to 4 of 4

Format cell with a value with a color, then range of cells to left a different color

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    At my desk
    MS-Off Ver
    2010
    Posts
    9

    Format cell with a value with a color, then range of cells to left a different color

    Not sure if this can/should be done via VBA, conditional formatting, etc....

    I'd like excel to be able to look at each row of a data range (in the example D3 thru K10),
    Identify the first cell with a numerical value,
    Format that cell one color (orange in the example),
    Then format all cells left of that value a different color (black in the example).
    (all cells to the right of the value can remain unformatted).

    Please see attached example.... Thanks in advance!
    Dan
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Format cell with a value with a color, then range of cells to left a different color

    Select the range D3:K8 and then make New Rules for conditional formatting using the formulas given below.

    For black
    Please Login or Register  to view this content.
    For Orange
    Please Login or Register  to view this content.
    I have applied the conditional formatting in the sheet.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    At my desk
    MS-Off Ver
    2010
    Posts
    9

    Re: Format cell with a value with a color, then range of cells to left a different color

    Brilliant! Thank you sktneer!

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Format cell with a value with a color, then range of cells to left a different color

    You're welcome.

+ 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] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  2. Replies: 5
    Last Post: 10-24-2013, 05:34 PM
  3. Replies: 0
    Last Post: 09-26-2012, 01:08 PM
  4. Replies: 12
    Last Post: 09-18-2012, 03:13 PM
  5. [SOLVED] RE: Can't format cell color/text color in Office Excel 2003 in files .
    By albertaman in forum Excel General
    Replies: 0
    Last Post: 02-16-2006, 12:00 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