+ Reply to Thread
Results 1 to 2 of 2

2 issues: Conditional formatting formula & Counting between values with date and T/F

  1. #1
    Registered User
    Join Date
    01-21-2011
    Location
    Tulsa, Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    5

    2 issues: Conditional formatting formula & Counting between values with date and T/F

    Ok, I have two issues.

    First, I didn't realize I could do conditional formatting based on a true formula. What I would like is a formula that highlights dates in E:E a certain color, say red, if they are within range B3 to B3+15 and the information in T:T is FALSE.


    Second issue... a tad more complicated.

    I have a formula that counts the number of times a serial number shows up on a report, but my formula doesn't count a formula twice if it appears. So I need some help, if anyone would be so kind


    a b c d e
    1 S/N date CMPLTD start: 1/1/2011
    2 100 1/2/2011 TRUE end: 2/1/2011
    3 101 1/4/2011 TRUE

    4 102 1/6/2011 TRUE

    5 103 1/6/2011 TRUE

    6 104 1/7/2011 FALSE

    7 105 1/8/2011 FALSE

    8 100 1/10/2011 TRUE

    9 106 2/1/2011 FALSE


    What I'm trying to achieve is to count the number of cells in column A if the date in columb B is within the criteria of E1 and E2, and the CMPLTD column is TRUE.

    The current formula I use only counts the unique values:
    Please Login or Register  to view this content.
    CSE



    Thanks!

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

    Re: 2 issues: Conditional formatting formula & Counting between values with date and

    Assuming the 2 issues are for data in 2 different areas because they don't both reference the same data it seems, then:

    Issue 1: Select column E and go to Format|Conditional Formatting and select Formula Is from the drop down. Then enter formula: =AND($E1>=$B$3,$E1<=$B$3+15,$T1=FALSE) where it is assumed you picked entire column E. Click Format and choose from Pattern tab.

    Issue 2:

    =Sumproduct(--($B$1:$B$100>=$E$1),--($B$1:$B$100<=$E$2),--($C$1:$C$100=TRUE))
    where C1:C100 represents the CMPLTD column. Note, with Sumproduct you cannot use whole column references in XL2003 and you should keep ranges to a minimum size.
    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.

+ 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