+ Reply to Thread
Results 1 to 3 of 3

Location Score Differences Based on Dates?

  1. #1
    Registered User
    Join Date
    05-07-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    59

    Location Score Differences Based on Dates?

    On a DATA sheet we have:

    Column A = location number
    Column D = Review Date
    Column E = Review Score

    FRONT sheet we have:

    Column D = Location Number
    Cell N3 = previous quarter start date
    Cell O3 = previous quarter end date
    Cell N4 = current quarter start date
    Cell O4 = current quarter end date

    Need a formula for FRONT sheet which, for each corresponding location in column D, will return the Review score from the DATA sheet for the previous quarter subtracted from the Review score for that same location for the current quarter.

    Thanks in advance

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Location Score Differences Based on Dates?

    hi tgallag1. it's been a while you've joined & you have probably upgraded your excel version. could you update your profile of your MS Off Ver. it would be clearer & help members give you newer & more efficient formulas. also, uploading an excel file with manually keyed desired results help.

    if you are using Excel 2007 and above, this will give you the results for current quarter (assuming data for location in D2)
    =SUMIFS(DATA!E:E,DATA!A:A,D2,DATA!D:D,">="&$N$2,DATA!D:D,"<="&$O$2)

    you just have to change a little to get the previous quarter:
    =SUMIFS(DATA!E:E,DATA!A:A,D2,DATA!D:D,">="&$N$1,DATA!D:D,"<="&$O$1)

    then subtract previous quarter from current

    in Excel 2003, use SUMPRODUCT & do not use the full column as it slows down calculations (for current quarter again):
    =SUMPRODUCT((DATA!$E$2:$E$1000)*(DATA!$A$2:$A$1000=D2)*(DATA!$D$2:$D$1000>=$N$2)*(DATA!$D$2:$D$1000<=$O$2))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    05-07-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    59

    Re: Location Score Differences Based on Dates?

    Perfect, thank you for your help. And I appreciate you supplying both versions. I use 2007 but depending on the situation I sometimes need 2003 as some of our users have not converted.

    Thank you!

+ 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. Calculate Full price Based on Location and 2 Dates
    By dluhut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-09-2014, 02:09 PM
  2. Replies: 2
    Last Post: 03-20-2012, 06:30 PM
  3. Pulling test score based on date, not highest score.
    By PowerSchoolDude in forum Excel General
    Replies: 2
    Last Post: 12-01-2009, 06:42 PM
  4. formula to work out score based on score system
    By Nathaniel82 in forum Excel General
    Replies: 5
    Last Post: 08-10-2009, 11:25 AM
  5. Dates and Differences between
    By bvbaby in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2009, 07:33 PM

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