I thought the same thing. If anything, I figured it would pass an #INVALID value to Sumproduct. But I tested it..
I suspect what's happening is that it "normally" takes a date and converts it to an integer. then does the calculation. I think what it's actually doing here is converting the month/year figures to # of days (since 1/1/1900) and adding the day #... By doing that, it's really bypassing the date-to-integer conversion altogether. And therefore, there really IS no error (in the calculation) Paul ----------------------------------------- “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley ----------------------------------------- ________________________________ From: DaveO <dmo...@gmail.com> To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com> Sent: Thu, November 3, 2011 2:53:55 PM Subject: Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February I didn't see your note, Paul, thanks for your response. I thought the equivalent of date(2012,2,30) would return an error and not get counted in the SUMPRODUCT. Instead, as you say it gets counted as the next day and throws the count off. -- FORUM RULES (925+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (925+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com