+ Reply to Thread
Results 1 to 3 of 3

Finding current week and if any item has somthing due

  1. #1
    Robert Brown
    Guest

    Finding current week and if any item has somthing due

    I have a worksheet with almsot 40 items and everyday of the year, but i need
    something to tell me quickly if there is something coming up this week. I can
    do this for each day and column, but i am having trouble getting a formula i
    can use to look at all the items, and count up all the items due that week.

    This is what i have so far, the inital criteria "1" tells me there is
    something due, the other is to see if it is the current week;

    =COUNTIF(D16,1 & (IF(WEEKNUM(E16,2)=WEEKNUM(TODAY(),2),,1)))

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Would this help

    =SUMPRODUCT(--(WEEKNUM(D16,2)=WEEKNUM(TODAY(),2)*(--($E$16:$E$100=1)*(--($E$16:$E$100)))))

    VBA Noob

  3. #3
    Robert Brown
    Guest

    Re: Finding current week and if any item has somthing due

    Not quite becuase i need to look over all the dates, not just one of them, i
    think i figured it out though:
    (This is also looking off other sheets, not specified in original question)

    =SUMPRODUCT(ISNUMBER(SEARCH(WEEKNUM(TODAY(),2),'Target Closed
    Date'!$C$3:$C$368))*('Target Closed Date'!$G$3:$AS$368=1))

    and if you need it for the next week just add +1 after "TODAY(),2)" like this:

    =SUMPRODUCT(ISNUMBER(SEARCH(WEEKNUM(TODAY(),2)+1,'Target Closed
    Date'!$C$3:$C$368))*('Target Closed Date'!$G$3:$AS$368=1))

    Thank you for your help though, bringing up SUMPRODUCT made everything click
    : )

    "VBA Noob" wrote:

    >
    > Would this help
    >
    > =SUMPRODUCT(--(WEEKNUM(D16,2)=WEEKNUM(TODAY(),2)*(--($E$16:$E$100=1)*(--($E$16:$E$100)))))
    >
    > VBA Noob
    >
    >
    > --
    > VBA Noob
    > ------------------------------------------------------------------------
    > VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
    > View this thread: http://www.excelforum.com/showthread...hreadid=562800
    >
    >


+ 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