+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting with Formulas - PLEASE HELP

Hybrid View

  1. #1
    Registered User
    Join Date
    09-02-2014
    Location
    Bay Area, CA
    MS-Off Ver
    2013
    Posts
    53

    Conditional Formatting with Formulas - PLEASE HELP

    Hi, thank you for your help! I am trying to use conditional formatting to change to fill of cell based on a formula that analyzes other cells. I have data in cell "u" and "bb". I need the formatting to effect all of column BB (this cell contains a number, not a percentage). For example my first row would be, IF (BB2+U2)/U2 is greater than or equal to 110% then change the fill to RED But If (BB2+U2)/U2 is less than or equal to 90% change the fill to blue. I cannot figure out the formula to use in conditional formatting. PLEASE HELP ME!

  2. #2
    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
    53,051

    Re: Conditional Formatting with Formulas - PLEASE HELP

    1st, pick a color and use regular formatting to make all cells that color (say, Blue).
    then
    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 =(BB2+U2)/U2>=1.1 format fill RED
    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

  3. #3
    Registered User
    Join Date
    09-02-2014
    Location
    Bay Area, CA
    MS-Off Ver
    2013
    Posts
    53

    Re: Conditional Formatting with Formulas - PLEASE HELP

    Thank you, I need it to apply to the whole column of BB not just BB2. How would I do that?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Conditional Formatting with Formulas - PLEASE HELP

    Use the following in formulas in conditional formats

    =BB2/U2>=0.1
    =BB2/U2<=-0.1
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    09-02-2014
    Location
    Bay Area, CA
    MS-Off Ver
    2013
    Posts
    53

    Re: Conditional Formatting with Formulas - PLEASE HELP

    conditional formatting example.xlsx

    Here is an example of what I am trying to do. The problem I am having is trying to have the conditional formatting for all of column BB and getting it correct.

  6. #6
    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
    53,051

    Re: Conditional Formatting with Formulas - PLEASE HELP

    I would caution against using an entire column, use only the range you need. CF is resource-heavy and can tend to slow things down.

    I covered selecting the range in point 1 above

    @ Siva, if there are only 2 colors, you can use regular formatting for 1 color, then you only need 1 CF rule for the other color Saving a CF rule

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Conditional Formatting with Formulas - PLEASE HELP

    Quote Originally Posted by FDibbins View Post
    I would caution against using an entire column, use only the range you need. CF is resource-heavy and can tend to slow things down.

    I covered selecting the range in point 1 above

    @ Siva, if there are only 2 colors, you can use regular formatting for 1 color, then you only need 1 CF rule for the other color Saving a CF rule
    FDibbins you are right, but op is asked for
    IF (BB2+U2)/U2 is greater than or equal to 110% then change the fill to RED
    If (BB2+U2)/U2 is less than or equal to 90% change the fill to blue

    so that between 90% to 110% the original format remains

  8. #8
    Registered User
    Join Date
    09-02-2014
    Location
    Bay Area, CA
    MS-Off Ver
    2013
    Posts
    53

    Re: Conditional Formatting with Formulas - PLEASE HELP

    conditional formatting example.xlsx
    I appreciate your help and quick response. I have attached an example of what I am trying to accomplish. I have a range with no color 90% - 110% so formatting the color will not work for me. Please see the attached workbook.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Conditional Formatting with Formulas - PLEASE HELP

    see the attached file
    Attached Files Attached Files

+ 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. Conditional formatting using formulas
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2011, 10:27 PM
  2. Conditional Formatting Formulas
    By smart_as in forum Excel General
    Replies: 3
    Last Post: 03-09-2011, 10:33 AM
  3. Replies: 1
    Last Post: 09-14-2010, 03:45 AM
  4. Conditional formatting with formulas
    By macaonghus in forum Excel General
    Replies: 7
    Last Post: 03-04-2009, 02:26 PM
  5. [SOLVED] Help Using Formulas in Conditional Formatting
    By Still Learning in forum Excel General
    Replies: 2
    Last Post: 01-28-2005, 02:06 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