+ Reply to Thread
Results 1 to 5 of 5

Comparing figures over 6 months (SUMPRODUCT)

Hybrid View

  1. #1
    Registered User
    Join Date
    11-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Comparing figures over 6 months (SUMPRODUCT)

    Hi All,

    I need to compare figures for the past 6 months, for the same period that we are in in the current month i.e if 20 days have elapsed this month I want to add all the figures for the first 20 days of April, March etc. I tried using SUMPRODUCT but cant seem to get it to work, should I be using something else?

    I have attached a sheet with the way my data is set out, only working days are shown on the sheet so a month will not neccessaraly start from the 1st, any help will be greatly appreciated
    Attached Files Attached Files
    Last edited by buffalobill; 05-30-2010 at 10:22 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Comparing figures over 6 months (SUMPRODUCT)

    For April

    =SUM(OFFSET($C$1,MATCH("apr,10",D:D,0),0,$I$8,1))

    For March

    =SUM(OFFSET($C$1,MATCH("mar,10",D:D,0),0,$I$8,1))

  3. #3
    Registered User
    Join Date
    11-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Comparing figures over 6 months (SUMPRODUCT)

    Thank you, the figures dont seem to add up when I put the formula in though, for April the actual amount is 899 but the formula gives me 888 and for March the actual is 1016 but the formula gives me 1053. Any suggestions or am I doing something wrong?

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Comparing figures over 6 months (SUMPRODUCT)

    slight oversight in the offset start. try

    April
    =SUM(OFFSET($C$1,MATCH("apr,10",D:D,0)-1,0,$I$8,1))

    March
    =SUM(OFFSET($C$1,MATCH("mar,10",D:D,0)-1,0,$I$8,1))

  5. #5
    Registered User
    Join Date
    11-03-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Comparing figures over 6 months (SUMPRODUCT)

    Works perfectly, thank you very much.

+ 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