+ Reply to Thread
Results 1 to 9 of 9

Excel 2008 : SUMIF using Name and Date Range criteria

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    Naples, FL
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Question SUMIF using Name and Date Range criteria

    Attempting to create a form sheet that compares the sums of several employees' sales in specific categories, between two different date ranges. When the 'Start Date' and 'End Date' on the top of either Range are adjusted, data in the categories should change.

    The specific snag I am encountering, is finding a SUMIFS statement whose criteria are Name, and Date Range. I have considered using DSUM as an alternate function, but the layout of my 'Display' sheet prohibits it.

    Specifics are as follows:

    • The 'Tracker Entry Form' sheet houses all of the data entered from each employee's tracker. Name is Column A, Date is Column B, and the specific sales category I am tracking is in Column D.

    • The 'Date-Rage Comparison' sheet is where my formulas should be, in cell C10. Name is Column A on this sheet as well. End Date is stored in cell G5, and Start Date in C5. The formula I am working on is regarding employee whose name is stored in A10.

    The formula I am using, which returns a #VALUE! error, is:
    =SUMIFS('Tracker Entry Form'!D:D,'Tracker Entry Form'!B:B,"<="&G5,'Tracker Entry Form'!A:A,A10)-SUMIFS('Tracker Entry Form'!D:D,'Tracker Entry Form'!B:B,"<"&C5,'Tracker Entry Form'!A:A,A10)

    Any help on this is GREATLY appreciated, I am stuck and frustrated beyond belief. Thank you all!
    Last edited by DonkeyOte; 10-19-2010 at 03:14 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Help! SUMIF using Name and Date Range criteria

    That formula works for me, I imagine you have some problem with the data.......are there #VALUE errors anywhere in the data?

    You could do everything in one SUMIFS, that'd be easier, i.e.

    =SUMIFS('Tracker Entry Form'!D:D,'Tracker Entry Form'!B:B,"<="&G5,'Tracker Entry Form'!B:B,">="&C5,'Tracker Entry Form'!A:A,A10)

    ...but if you get an error with the previous one I imagine you'll get an error with that too......
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-18-2010
    Location
    Naples, FL
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Exclamation Re: Help! SUMIF using Name and Date Range criteria

    daddylonglegs,

    Thanks for your help! There are no #VALUE! errors in the data, only in other parts of the same form that have formulas including C10 (location of the formula in question). I have tried your formula and it returns the same #VALUE! error. Also tried removing all data from the Tracker Entry Form sheet and entering in a few to test, however this also does not remove the error.

    Thank you again for your help! Any other suggestions or ideas are certainly appreciated.

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Help! SUMIF using Name and Date Range criteria

    Is your data definetley all numbers and not some text sneaking in there? Value errors occur most of the time when you try to add text to numbers

  5. #5
    Registered User
    Join Date
    10-18-2010
    Location
    Naples, FL
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Exclamation Re: Help! SUMIF using Name and Date Range criteria

    No text in any inappropriate fields. Only in the Name fields, thank you though.

    I am starting to suspect that mixing Date data with name data is the culprit, does anyone have experience mixing these types of data in a SUMIFS formula?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help! SUMIF using Name and Date Range criteria

    Given the formula provided only an underlying #VALUE! error would cause a #VALUE! result - this includes criteria cells.

    If the ranges used were not all of the same size that too would generate a #VALUE! error in SUMIFS but here you're using entire column references for each range so that should not be the case.

    Quote Originally Posted by scottylad2
    Is your data definetley all numbers and not some text sneaking in there? Value errors occur most of the time when you try to add text to numbers
    Quote Originally Posted by cloudydaysong
    I am starting to suspect that mixing Date data with name data is the culprit, does anyone have experience mixing these types of data in a SUMIFS formula?
    If the data types were incompatible that would affect the result in terms of the aggregate result but it would not generate an error as no explicit coercion takes place in SUMIFS
    (though you could argue over numeric string criteria being treated as numbers - as coercion of a sort)
    Last edited by DonkeyOte; 10-19-2010 at 03:13 AM. Reason: added quotes for clarity

  7. #7
    Registered User
    Join Date
    10-18-2010
    Location
    Naples, FL
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Exclamation Re: SUMIF using Name and Date Range criteria

    Okay, today I took this project into work and opened it on a Windows PC, using Excel 2007, it worked fine. Any idea why this error would occur on Excel '08 for Mac?

    Also, any other ideas for getting around the error while accomplishing the same goal?

    As always, thank you so much for your help!

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF using Name and Date Range criteria

    OK well in my mind I figured there's no reason why it shouldn't work in XL2008 so a quick google threw up:

    http://www.officeformac.com/ms/ProductForums/Excel/2620

    it seems you need to ensure you have installed the following update:

    Quote Originally Posted by Bob Greenblatt MVP, Macintosh
    the fix is the Office 12.1.3 update available from Mactopia.

  9. #9
    Registered User
    Join Date
    10-18-2010
    Location
    Naples, FL
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    5

    Exclamation Re: SUMIF using Name and Date Range criteria

    Such a simple fix for so many hours of troubleshooting! Ah, such is the nature of this work... Thank you so much for your help, I've installed the update and magic. Now on to unbridled productivity, cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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