+ Reply to Thread
Results 1 to 7 of 7

Question Involving Conditional Formatting:

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    Jacksonville, NC
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Involving Conditional Formatting:

    Greetings everyone!

    I am attempting to add a feature to a spreadsheet that I, as well as others, use for work. I believe what I want to accomplish can be achieved through conditional formatting, but to say I am experienced in this aspect of Excel, would be a lie. I will outline what I wish to accomplish below:

    We have inventory levels in our business that we track on this spreadsheet. As they increase, they get closer to being unable to manage, so I'd like to automatically highlight these increases on the spreadsheet. So, for example:


    If [cell x] is 500 to 1000 more than [cell y], highlight using color (let's say pink).
    If [cell x] is 1001 or more than [cell y], highlight using color (let's say red).



    In the above example, [cell x] would be the cell where we key in the inventory level for a particular store for a week, let's say $50,000.

    [Cell Y], would be the cell that contains what the store usually trends, let's say $49,200; this is keyed in once a month at the bottom of the spreadsheet under a Budget section, where we key in the rest of our (you guessed it) budgets. Both Cell X and Y are keyed in by the user, on a weekly or monthly basis (as previously outlined).

    My question is, is it even possible to create a formula that does this; and, if so, how would I go about it? Thank you very much in advance!

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Question Involving Conditional Formatting:

    highlight "cell x", goto conditional formatting > new rule >use formula
    =And(("cell x" - "cell y")>=500,("cell x"-"cell y)<=1000)
    hit format button>fill..select color ok,ok
    conditional formatting >new rule >use formula
    = ("cell x" - "cell y") > 1000
    hit format >fill ..select color ok,ok

    Hope that helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    Jacksonville, NC
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Question Involving Conditional Formatting:

    Thanks for the timely assistance! I followed your directions (at least I think I did), however, it doesn't seem to be working. I have attached the spreadsheet I'm working on, so, hopefully you will be able to see where I might have screwed up. The cell I added your formula to (Cell X, in this case), is D133. The cell it is supposed to refer to and use as a guide (Cell Y) is D858. Thanks again for the help, and I look forward to hearing back from you.

    Moderator's Note: As per Forum Rule #12, don't quote whole posts unless necessary-- it's just clutter...Thanks.
    Attached Files Attached Files
    Last edited by jeffreybrown; 11-28-2012 at 11:23 PM.

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Question Involving Conditional Formatting:

    Not sure what the problem is, I just applied them to D133, using a "pink" for the first rule and a "red" for the second, cell turned "pink" -->AND((160,600-160,000){600}>=500{TRUE},(160,600-160,000){600}<=1000{TRUE}){TRUE)

    Seems to be working here, what exactly are your results ?

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Question Involving Conditional Formatting:

    Okay...I found it, delete the apostrophes...should work then
    I referenced them the way I did in the answer because I had no clear idea as to what cells you were going to be referencing, sorry about the confusion

    Edit
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by dredwolf; 11-28-2012 at 09:57 PM.

  6. #6
    Registered User
    Join Date
    11-28-2012
    Location
    Jacksonville, NC
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Question Involving Conditional Formatting:

    Ahhh...Working perfectly now! I saw the marks and debated on taking them out. It probably would have made sense to give it a shot before posting again, but I didn't think of it at the time, so thank you!

    Moderator's Note: As per Forum Rule #12, don't quote whole posts unless necessary-- it's just clutter...Thanks.
    Last edited by jeffreybrown; 11-28-2012 at 11:23 PM.

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Question Involving Conditional Formatting:

    You are welcome

+ 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