+ Reply to Thread
Results 1 to 3 of 3

Formula to pick up data in a range of more than one calendar year

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    11

    Formula to pick up data in a range of more than one calendar year

    Hello,

    PLease, can somebody help me with the formula.
    I have a list of jobs (A) with award date (B), start date (C) and finish date (D). I also have hours spent for each job (F) and I want to select which jobs I want to take into account (E).
    I want a formula to sumproduct all jobs by calendar month depending on the month it was awarded and through to its finish date, then check if I want this job to be taken into account ("y" in (E) and multiply by hours (F).

    The formula I have at the moment works perfectly well BUT only if the award dat, start date and finish date are in the same year.
    When the award date is in a different year (2015) than the start date (2016), the formula wont work.

    I am attaching the dummy spreadsheet with the existing formula.

    THANK YOU!
    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: Formula to pick up data in a range of more than one calendar year

    i7=SUMPRODUCT((DATE(YEAR($B$2:$B$4),MONTH($B$2:$B$4),0)<I$6)*(DATE(YEAR($D$2:$D$4),MONTH($D$2:$D$4)+1,0)>=I$6)*($E$2:$E$4="Y")*($F$2:$F$4))
    try this and copy towards right
    Samba

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

  3. #3
    Registered User
    Join Date
    01-28-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    11

    Re: Formula to pick up data in a range of more than one calendar year

    THank you it works!

+ 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] Formula to Calculate the # of Calendar Months Surpassed Thus Far in a Year
    By Aimee S. in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-14-2014, 02:43 PM
  2. [SOLVED] Need help with Calendar formula for previous year and next year
    By dcoates in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2013, 11:58 AM
  3. Replies: 0
    Last Post: 11-23-2012, 01:27 AM
  4. Calculating totals from a date range on a rolling calendar year?
    By rjahoo7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2010, 07:53 PM
  5. Replies: 3
    Last Post: 03-12-2009, 09:54 AM

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