+ Reply to Thread
Results 1 to 12 of 12

Format cell colors based on another cell values with positive and negative numbers

  1. #1
    Registered User
    Join Date
    09-18-2016
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    71

    Format cell colors based on another cell values with positive and negative numbers

    Hi this forum has been very helpful in the past and I am currently stuck on formatting the color of one cell based on different criteria of another cell.

    Here are the details.

    If C22 is +0.01 to +0.50 cell B22 is Green
    If C22 is -0.01 to -0.30 cell B22 is Yellow
    If C22 is equal to or greater than +0.51 cell B22 is Red
    If C22 is equal to or greater than -0.31 cell B22 is Red (Here I am saying that if C22 is -0.31 or -0.38 or -0.41, not sure if a larger negative number is greater than or less than.)

    That's it. I have been successful at changing cell C22 to these colors but now that I am trying to change adjacent cells based on C22 values, I can't seem to do it.

    Thanks for your help and insight.

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

    Re: Format cell colors based on another cell values with positive and negative numbers

    Select cell B22 and do the same as before

  3. #3
    Registered User
    Join Date
    09-18-2016
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    71

    Re: Format cell colors based on another cell values with positive and negative numbers

    I am sorry but I am still having trouble. I select cell B22 and go to Conditional Formatting. Click on new rule and formula. Now it asks for a formula do I use IF(c22=>+0.51)? I have tried various permutations but nothing works. Sorry I am such a noob at this. Can you give me some specific help? Thanks.

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

    Re: Format cell colors based on another cell values with positive and negative numbers

    Select B22
    in CF use the same formulas as before
    Should be:
    =AND(C22>0.01,C22<0.5) for green
    the rest is similar

    btw. + in front of number is not neccessary because it is always plus

  5. #5
    Registered User
    Join Date
    09-18-2016
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    71

    Re: Format cell colors based on another cell values with positive and negative numbers

    Thank you. I will try this right away.

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

    Re: Format cell colors based on another cell values with positive and negative numbers

    Sorry for the: use the same formulas as before but I assumed you did all rules correctly

  7. #7
    Registered User
    Join Date
    09-18-2016
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    71

    Re: Format cell colors based on another cell values with positive and negative numbers

    Well, that didn't work. I am sorry to be so dumb about this.

    Thanks.
    Attached Images Attached Images

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

    Re: Format cell colors based on another cell values with positive and negative numbers

    try this:

    Green =AND(C22>0.01,C22<0.5)
    Yellow =AND(C22<-0.01,C22>-0.3)
    Red =OR(C22>=0.51,C22<=-0.31)
    Last edited by sandy666; 03-30-2017 at 11:19 AM.

  9. #9
    Registered User
    Join Date
    09-18-2016
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    71

    Re: Format cell colors based on another cell values with positive and negative numbers

    OK. The 2 red fills worked. But the green and yellow did not work. I put them in the order you listed. Does the order matter in this instance?

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

    Re: Format cell colors based on another cell values with positive and negative numbers

    In this case order doesn't matter
    Green =AND(C22>=0.01,C22<=0.5)
    Yellow =AND(C22<=-0.01,C22>=-0.3)
    Red =OR(C22>=0.51,C22<=-0.31)

    you didn't say greater/less or equal for green and yellow
    Last edited by sandy666; 03-30-2017 at 11:30 AM.

  11. #11
    Registered User
    Join Date
    09-18-2016
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    71

    Re: Format cell colors based on another cell values with positive and negative numbers

    YES. SUCCESS!

    Thank you for your help and patience. I have spent the morning trying to make this work. Whew.

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

    Re: Format cell colors based on another cell values with positive and negative numbers

    You are welcome

    If the basic problem is solved
    - it's always a good practice to show respect to the person(s) who have helped you
    - is a click on the Add Reputation first (left lower corner of the post of person(s) who helped you) and then
    - mark the thread as SOLVED (top right corner over your first post - Thread Tools). This is important for all of us,

    Thanks

+ 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: 2
    Last Post: 05-19-2016, 04:49 AM
  2. Replies: 1
    Last Post: 04-13-2016, 12:31 PM
  3. [SOLVED] Negative Numbers in Red Brackets, Positive Numbers in Accounting Format
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-24-2015, 08:29 AM
  4. Separate positive & negative numbers from on cell
    By tselek1985 in forum Excel General
    Replies: 3
    Last Post: 06-11-2015, 08:14 AM
  5. [SOLVED] Format to 1k or 1m depending on Value (Positive & Negative Numbers)
    By batchy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 05:02 AM
  6. Cell colours for negative and positive values
    By Kuler in forum Excel General
    Replies: 1
    Last Post: 01-24-2014, 08:10 AM
  7. Replies: 2
    Last Post: 01-19-2009, 02:18 PM

Tags for this Thread

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