+ Reply to Thread
Results 1 to 10 of 10

conditional formatting of specific cells based on 1 cell value

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    conditional formatting of specific cells based on 1 cell value

    I know that conditional formatting can highlight or change the font of an entire row based on 1 cell's value, but can conditional formatting or a specific formula change the font of part of a row, IE: specific cells based on a single cell's value rather than the entire row? If so, how is it done?

    For example if cell AB4 is negative (less than 0) than i want the font in cells T4:AB4 to be a specific color. Everything else in the row remains in the regular black font.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: conditional formatting of specific cells based on 1 cell value

    Hi,

    you can apply conditional formats on limited range. You could try to select T4:AB4 and go to conditional formatting to set the new rule.

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: conditional formatting of specific cells based on 1 cell value

    see if this will help get you started?
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =the-rule-formula-that-you-need
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: conditional formatting of specific cells based on 1 cell value

    I've included a workbook as an example. Can someone explain the formula i would use in conditional formatting? Also the range will extend indefinitely as new data is inserted so the formula will need to continue on as well.

    The highlighted area in red are the cells in question.
    Attached Files Attached Files

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: conditional formatting of specific cells based on 1 cell value

    with your example in CF: =$I3<0 and set your favorite colour
    (if you've problem with CF read post #3)

  6. #6
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: conditional formatting of specific cells based on 1 cell value

    I'm not understanding what format i am supposed to use in CF. I want cells B:I to highlight in red font when the value in cell I is negative. Can someone walk me through on how to do this?

    Thank you
    Last edited by RachelMads02; 03-29-2017 at 03:22 PM.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: conditional formatting of specific cells based on 1 cell value

    Quote Originally Posted by sandy666 View Post
    with your example in CF: =$I3<0 and set your favorite colour
    (if you've problem with CF read post #3)
    read post #3 and use red from above in point 4

    rachel_CF.jpg

    or check att.
    Attached Files Attached Files
    Last edited by sandy666; 03-29-2017 at 03:33 PM.

  8. #8
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: conditional formatting of specific cells based on 1 cell value

    I did read post 3; about 5 times. When i enter the formula you provided it only changed the font in Cell I3. Hence why i asked a few times.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: conditional formatting of specific cells based on 1 cell value

    See picture or check attachment in post #7

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: conditional formatting of specific cells based on 1 cell value

    No kiss?

+ 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. Replies: 1
    Last Post: 10-04-2016, 05:17 AM
  2. [SOLVED] Evaluating a cell to apply specific conditional formatting to other cells
    By EZFoxOne in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-28-2015, 12:44 PM
  3. Replies: 2
    Last Post: 06-20-2014, 10:48 AM
  4. Conditional Formatting - Format row based on cell value in specific column
    By Kite3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2013, 12:23 AM
  5. Conditional formatting blank cells based on another cell value
    By 6MPS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2013, 11:59 AM
  6. [SOLVED] Macros imitating conditional formatting based on specific text within cell
    By schaasyd in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-15-2012, 06:30 PM
  7. Replies: 4
    Last Post: 01-06-2012, 05:07 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