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?
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?
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
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.
I have attached the above example showing both ways. No idea why its not working
Sorted.
Thanks for the help. It needed OR instead of ARM so have it working now.
Cheers
Happy to help and glad you got it sorted out
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks