+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting- Functions

  1. #1
    Registered User
    Join Date
    01-17-2007
    Posts
    4

    Conditional Formatting- Functions

    I am a public health student and am developing an asthma tracking system. I want to set up column F so that if the value is less than 80% of column G the cell will shade yellow, and if it's less than 50% it will shade red. I just need to know how to write the formulas to set those conditions. Thank you, hope someone can help.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by jbroad
    I am a public health student and am developing an asthma tracking system. I want to set up column F so that if the value is less than 80% of column G the cell will shade yellow, and if it's less than 50% it will shade red. I just need to know how to write the formulas to set those conditions. Thank you, hope someone can help.
    Hi,

    with column F selected (F1 the active cell)

    Data, Conditional Format,

    Formula,

    =F1<(G1*0.5)

    colour for red pattern

    add option

    Formula

    =F1<(G1*0.8)

    colour for yellow pattern.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    01-17-2007
    Posts
    4
    Will that apply it to all of the F's, or would I need to set up that formula for every F cell individually?

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by jbroad
    Will that apply it to all of the F's, or would I need to set up that formula for every F cell individually?
    what did it do?

    ---

  5. #5
    Registered User
    Join Date
    01-17-2007
    Posts
    4
    I had to change the formula for each cell so far... is there a way to write a formula with so it applies to all those in that column... =Fn<Gn*.5 or something like that.

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by jbroad
    I had to change the formula for each cell so far... is there a way to write a formula with so it applies to all those in that column... =Fn<Gn*.5 or something like that.
    It was originally written to apply to the whole column

    Select Column F with F1 being the Active Cell (the odd coloured cell)

    Data, Conditional Format, Formula, =F1<(G1*0.5) colour for red pattern
    add option
    Formula, =F1<(G1*0.8) colour for yellow pattern

    and that applies to the column

    ---

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try selecting the whole column and then add the conditional formatting


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  8. #8
    Registered User
    Join Date
    01-17-2007
    Posts
    4
    Got it, thank you very much!

  9. #9
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by jbroad
    Got it, thank you very much!
    good to see, and thanks for the response
    ---

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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