+ Reply to Thread
Results 1 to 8 of 8

color changing across a row

  1. #1
    Registered User
    Join Date
    12-09-2013
    Location
    Tennesse
    MS-Off Ver
    Excel 2010
    Posts
    14

    color changing across a row

    Hello everybody

    I am looking for a way to change the fill color of a row to just a portion of a row based on a on cell in the value on on cell in the row.
    I understand it should have something to do with ifthen but not realy sure of the exact phrases.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,662

    Re: color changing across a row

    You cannot direct change the color of one or more cells with a formula
    Put a formula in 'conditional formating' there it will.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: color changing across a row

    Hi SGTNicholson,

    You can use Conditional Formatting for this.

    Select the range of cells you want to shade, let's say that's E1:J1. Let's also assume you want those cells shaded based on the value in cell A1 if cell A1 > 100.

    For the CF formula, use:

    =$A1>100

    Set the fill color and that should take care of it.

  4. #4
    Registered User
    Join Date
    12-09-2013
    Location
    Tennesse
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: color changing across a row

    Could you break that down just a little bit more.

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: color changing across a row

    Me or Popi?

  6. #6
    Registered User
    Join Date
    12-09-2013
    Location
    Tennesse
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: color changing across a row

    You Paul thanks

  7. #7
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: color changing across a row

    Based on the previous assumptions (column A has the value, columns E:J need to be filled a color based on that value):

    Select E1:J1 (or if multiple rows, E1:J20 for example).
    Click "Conditional Formatting" on the Home bar.
    Select "New Rule..."
    Select "Use a formula to determine which cells to format"
    Beneath "Format values where this formula is true:" type your conditional formula, e.g. =$A1>100
    Click the "Format..." button
    Select the "Fill" tab and select a color for shading.
    Click OK twice to return to your worksheet.

    If you applied that formatting to E1:J20, and A15 happened to be 121, cells E15:J15 would now be filled in with the color you chose. Hopefully that makes sense.

  8. #8
    Registered User
    Join Date
    12-09-2013
    Location
    Tennesse
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: color changing across a row

    That did it sometimes I just need to see it in crayon to figure it out. Thank you.

+ 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] Changing fill color of shapes based on changing cell value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:33 AM
  2. Changing all blue color numbers/texts to black color in cells...
    By dhyun3 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-05-2012, 10:17 AM
  3. changing cell color based on changing values
    By tvonbehren in forum Excel General
    Replies: 2
    Last Post: 09-16-2009, 12:33 PM
  4. macro: changing color of coloumn header based on rows color
    By rajaid in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2009, 06:43 PM
  5. Changing background color when changing value
    By blommerse@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-06-2006, 08:10 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