+ Reply to Thread
Results 1 to 5 of 5

Complex Conditional Formatting Based on Multiple Scenarios

  1. #1
    Registered User
    Join Date
    01-23-2015
    Location
    South East England
    MS-Off Ver
    2007
    Posts
    4

    Complex Conditional Formatting Based on Multiple Scenarios

    Hi guys,

    I've got a bit of a complex problem in Excel and was wondering if anyone would be able to help? It's essentially a conditional formatting rule but one that requires multiple changes based on certain criteria being met. It's easier to show than explain, so I've attached a sample file.

    Basically, I'd like to be able to insert a date into the "Stock Check Date" and then have any stock which has not arrived within a month to be highlighted orange, and any stock that has arrived but not been sold within a month to be highlighted in red. I'll then be able to apply a filter and custom sort the data as need be.

    The problems I've encountered are:

    - I can get the row to highlight orange by subtracting the check date from the purchase date and telling it to highlight if this value is greater than 31 days, but it will still be highlighted even when the stock has sold, which I don't want.

    - If stock was highlighted in red as not selling after a month but then does sell, how can I tell Excel to remove the highlight? Currently, the area will still stay highlighted red even if the stock was eventually sold. I only want it to be red if it hasn't sold within a month but then go away when it eventually did sell.

    - Same as above, but for the orange highlight. Even if the stock took longer than a month to arrive but eventually did arrive, how can I tell Excel to remove the highlight? At the moment, it will still stay orange even when the stock did arrive.

    I tried tinkering with IF formulas and conditional formatting but I can't get it exactly right. I don't think I'm using the right formula and I'm not sure if this is even possible to do, but would somebody be able to help?

    Many thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Complex Conditional Formatting Based on Multiple Scenarios

    see the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Complex Conditional Formatting Based on Multiple Scenarios

    There is a difference in what you are saying and what you mean...

    I mean, How will excel be knowing to remove Conditional Formatting as you have already told him to stay red if not sold within a month..?

    I guess we are missing something here that is CURRENT DATE.

    I guess you want to highlight it red when (CurrentDate - ArrivedDate) > 30
    and Red color should vanish when a date is put in Date Sold Column... Right..?
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Registered User
    Join Date
    01-23-2015
    Location
    South East England
    MS-Off Ver
    2007
    Posts
    4

    Re: Complex Conditional Formatting Based on Multiple Scenarios

    Quote Originally Posted by nflsales View Post
    see the attached file
    Wow, that is perfect and is exactly what I was looking for! Thank you so much, it's really appreciated!!

    Quote Originally Posted by Vikas_Gautam View Post
    There is a difference in what you are saying and what you mean...

    I mean, How will excel be knowing to remove Conditional Formatting as you have already told him to stay red if not sold within a month..?

    I guess we are missing something here that is CURRENT DATE.

    I guess you want to highlight it red when (CurrentDate - ArrivedDate) > 30
    and Red color should vanish when a date is put in Date Sold Column... Right..?
    nflsales managed to solve it for me, but thank you for having a look into it.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Complex Conditional Formatting Based on Multiple Scenarios

    Thanks for the feedback..!
    Good Luck...!

+ 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. Conditional Formatting for Multiple IF Scenarios
    By bunkerdc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2013, 01:43 PM
  2. [SOLVED] Excel 2007 : Conditional Formatting with Icons Sets and 4 scenarios
    By atheisen in forum Excel General
    Replies: 7
    Last Post: 07-17-2012, 12:43 PM
  3. Replies: 2
    Last Post: 08-26-2010, 07:46 AM
  4. Excel 2007 : Need formula based on multiple scenarios
    By LAB2007 in forum Excel General
    Replies: 4
    Last Post: 07-08-2010, 04:07 PM
  5. Conditional Format based on 2 scenarios
    By NotaExpert in forum Excel General
    Replies: 1
    Last Post: 08-07-2007, 06:30 PM

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