+ Reply to Thread
Results 1 to 3 of 3

Extend current formula for a date range

  1. #1
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Extend current formula for a date range

    I have a formula below that checks if a word in Column G matches a word in Cell I (I12 for this example)

    Please Login or Register  to view this content.
    In Column C I have a row of dates (associated with the same rows as the words that can appear like so:

    10/1/2013
    10/1/2013
    10/1/2013
    10/2/2013
    10/3/2013
    10/4/2013
    10/4/2013
    10/4/2013
    10/4/2013
    10/7/2013
    10/8/2013
    I only count words for 4 weeks out of the month so I also have a Boolean TRUE/FALSE formula on Cell Q9 that will say:

    Yes (Count the first 4 weeks of the month)
    or
    No (Count the 4 weeks skipping the first week of the month)

    1st of Current Month: 10/1/2013
    First Day of Month: 2
    Days in Week: 7
    Count First Week? TRUE



    How can I extend my formula to count as so if Q9 is TRUE:



    For Week 1:
    If Cell Q9 = TRUE (Meaning count the first week) and Column C date is within week 1 then:
    Please Login or Register  to view this content.

    For Week 2:
    If Cell Q9 = TRUE (Meaning count the first week) and Column C date is within week 2 then:
    Please Login or Register  to view this content.
    For Week 3:
    If Cell Q9 = TRUE (Meaning count the first week) and Column C date is within week 3 then:
    Please Login or Register  to view this content.
    For Week 4:
    If Cell Q9 = TRUE (Meaning count the first week) and Column C date is within week 4 then:
    Please Login or Register  to view this content.




    -
    or if Q9 is false
    -


    For Week 1:
    If Cell Q9 = FALSE (Meaning count starting the second week of the month) and Column C date is within week 2 then:
    Please Login or Register  to view this content.

    For Week 2:
    If Cell Q9 = FALSE (Meaning count starting the second week of the month) and Column C date is within week 3 then:
    Please Login or Register  to view this content.
    For Week 3:
    If Cell Q9 = FALSE (Meaning count starting the second week of the month) and Column C date is within week 4 then:
    Please Login or Register  to view this content.
    For Week 4:
    If Cell Q9 = FALSE (Meaning count starting the second week of the month) and Column C date is within week 5 then:
    Please Login or Register  to view this content.
    Last edited by playaller; 10-08-2013 at 08:49 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Extend current formula for a date range

    Well after piecing together internet codes I think I've put together the below code. If anyone see's any issues with it please let me know but i'm still trying to incorporate it to use the Boolean YES/NO to determine if the first week of the month should be counted as week one or if the 4 weeks after the is 4 weeks should be counted.

    Please Login or Register  to view this content.
    Last edited by playaller; 10-08-2013 at 09:42 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Extend current formula for a date range

    Well that didnt work at all. Still stuck

+ 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. [SOLVED] Need average of days for date values from date to current day that updates current date
    By FinGhost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2013, 04:41 PM
  2. [SOLVED] Selecting data from a date range based on the current date
    By ian-sheridan in forum Excel General
    Replies: 12
    Last Post: 06-20-2013, 11:38 AM
  3. Formula that will pull by a date range of the current date
    By terra_hewitt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2012, 11:08 AM
  4. generating date range from current date
    By dexelguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2008, 04:52 PM
  5. How do I enter a date range ie -7 from current date in MS QUERY
    By notsmartenough in forum Excel General
    Replies: 1
    Last Post: 11-11-2005, 06:25 PM

Tags for this Thread

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