+ Reply to Thread
Results 1 to 7 of 7

multi condition format? lookup and date condition valid for.

  1. #1
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    multi condition format? lookup and date condition valid for.

    Hello all.

    I would like to try and achive a conditional format that will require a lookup function. when the condition is met it places Yes or No into a cell and changes that row colour to red for the NO condition. and after 10 days from now the rowcolour is removed.

    i have put a little more info into the example file to try and help explian.

    thankyou.
    Attached Files Attached Files
    Last edited by D_Rennie; 08-13-2009 at 09:53 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: multi condition format? lookup and date condition valid for.

    Formula in E6:

    =IF(C6<=SUMIF(Sheet1!A:A,A6,Sheet1!D:D),"Yes","No") copied down.

    You can't really clear the formatting after 10 days from today() as Excel doesn't store today's date as a fixed date for tomorrow... (unless you use VBA)

    An alternative, is to set colour back 10 days after the date in column D...

    If you want that, then apply this conditional format at the top of the conditional format list (i.e make it the first format rule).


    =AND($E6="No",TODAY()<$D6+10)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    re: multi condition format? lookup and date condition valid for.

    Thankyou.
    The Formula does exacly what i asked for. Though can you help with it just a little more.
    I would also like if say cell C6 is blank then E6 should also be blank.

    Also with the condition formatting. can the entire row color be changes not just the single cell.

    Thankyou Again.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: multi condition format? lookup and date condition valid for.

    Try:

    =IF(C6="","",IF(C6<=SUMIF(Sheet1!A:A,A6,Sheet1!D:D),"Yes","No"))

    If you select the entire range (all rows) and apply that conditional format, then the whole row will highlight.

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    re: multi condition format? lookup and date condition valid for.

    Thankyou.

    Exaclly what i wanted.

  6. #6
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: multi condition format? lookup and date condition valid for.

    With
    =IF(C6="","",IF(C6<=SUMIF(Sheet1!A:A,A6,Sheet1!D:D),"Yes","No"))

    Is there a way to change the cell value to Yes or No only once.
    So if the value's are changed on sheet1 it will not change the cells on sheet2 that aready contain a Yes or No.
    This way later down the track i can see how often in a time period, item's had to be backordered.

    thankyou.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: multi condition format? lookup and date condition valid for.

    Not with formulas... maybe through VBA?

+ 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