+ Reply to Thread
Results 1 to 2 of 2

IF formula help..little bit complicated

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question IF formula help..little bit complicated

    Hi All,

    I need some help with a formula possibly with a string of IF statemants, i have been trying all morning but cant quite get it right.

    I have attached the file that im working on.

    Basically i have the RAG column (Column I, L, O, R) that i want to display either RED, AMBER or GREEN (or the letters R, A, G and then i can colour them using conditional formatting) depending on the following

    Green = The required quantity (column G) is MORE than the stock (column F) & the promise date (Column H) is before the PIP date (H2) & the STATUS (Column E) is A or B

    Amber = The required quantity (column G) is LESS than the stock (column F) but the promise date (Column H) is before the PIP date (H2) & the STATUS (Column E) is A or B

    Red = The required quantity (column G) is LESS than the stock & the promise date (Column H) is NOT before the PIP date (H2) & the STATUS (Column E) is C or D or E

    I then need the next RAG column (column L) to take into account its quanity requirments (column J) and the previous quantity requirments (column G) with regards to if there is enough stock or not and i will follow this through each time i add a new bar (AAA, BBB, CCC, DDD etc etc)

    Much appreciated
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: IF formula help..little bit complicated

    Welcome to the forum!

    I have done this both ways for you. There are formulas in the cells, and I have also used the same logic to set up conditional formatting.

    (For the cell formulas, it is possible to condense the logic, but I have left three completely separate cases because it's easier to write, easier to read, and there's not really any advantage in factoring out common conditions just to make a shorter formula.)

    Note that your conditions are not cumulatively exhaustive. That is, sometimes the square doesn't meet any of those three conditions. My formula puts a ? for that, but you can change it to blank if that's what you want.

    I am also trying to divine your business rules for this. I would think that if the required quantity is greater than stock on hand, you would want something other than green, but I'm not here to second-guess you!
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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