+ Reply to Thread
Results 1 to 6 of 6

Conditional format one cell based on another

  1. #1
    Registered User
    Join Date
    06-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2011
    Posts
    9

    Conditional format one cell based on another

    Hi,

    I am trying to change the colour of one cell, C9 based on C3 not being between two values. The values are obtained using two forecast formulas.

    Any ideas?

  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
    52,939

    Re: Conditional format one cell based on another

    Hi and welcome to the forum

    You do this with Conditional Formatting. Assuming the 2 values are in A1 and A2 (adjust the following formula as necessary)...

    1. highlight the range you want to apply the conditional formatting to (C9)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =and(C3<A1,C3>A2) format fill as required.

    If this isnt what you need, i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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
    06-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2011
    Posts
    9

    Re: Conditional format one cell based on another

    Thanks for the help but it doesn't seem to be working.

    I can only get it to do anything by swapping the < and > around.

    This then changes the colour of C9 when C3 is between A1 and A2.

    I want the exact opposite and don't understand why your example isn't working.

  4. #4
    Registered User
    Join Date
    06-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2011
    Posts
    9

    Re: Conditional format one cell based on another

    I have attached the above example showing both ways. No idea why its not working
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2011
    Posts
    9

    Re: Conditional format one cell based on another

    Sorted.

    Thanks for the help. It needed OR instead of ARM so have it working now.

    Cheers

  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
    52,939

    Re: Conditional format one cell based on another

    Happy to help and glad you got it sorted out

+ 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