+ Reply to Thread
Results 1 to 5 of 5

keeping the function in a particular cell but changing color based on another cell

  1. #1
    Registered User
    Join Date
    12-14-2007
    Posts
    19

    Talking keeping the function in a particular cell but changing color based on another cell

    first i'm sorry about the confusing title - i wasn't quite sure how to phrase shortly what i'm trying to do.

    here goes: in cell m4 i have the function =roundup(l4/a3,0).

    l4 = 5760
    a3 = 2

    the result i'm getting is 2,880. Now in cell l4 is the function =k4-j4. My result is 5760 (positive)

    I need to keep the function in m4 but i need it to change from green (positive) or red (negative) depending on the difference in l4. meaning if l4 is a positive then m4 needs to change to the color green and vice versa.

    I've tried conditional formatting but maybe i'm just so twisted around i'm not seeing what I need to. any help would be appreciated. I dont know VBA so it would have to be in simple terms.

    thanks and i hope i've made this easy to understand

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    In cell M4:

    1. Set the cell format to green.
    2. Format > Conditional Formatting
    3. Formula Is: =L4<0
    4. Set format to red.

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    12-13-2007
    Posts
    13
    Highlight column M

    click format-->conditional formating

    1)under condition 1 select 'Cell Value Is'
    2)in the next feild select 'less than'
    3) in the next feild select '0'
    4) click on the 'format' button
    5) click on patten
    6) select red
    7)click ok

    click on "Add" button

    follow steps above except select 'greater than' in step 2 and select green in step 6

    click ok

  4. #4
    Registered User
    Join Date
    12-14-2007
    Posts
    19
    Jason! thanks a lot! my problem was going through cell value not formula is.

    that did solve the problem. the cell averages fine but does change according to l4's total. I really appreciate it.

  5. #5
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad it helped.

    Jason

+ 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