Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread Haseeb Avarakkan
Or, another one; =INT((WEEKDAY(B1-DAY(B1)+1-6)+EOMONTH(B1,0)-(B1-DAY(B1)+1))/7) Even if B1 is not the first day of the month, it will work. If you are using XL2003 or prior versions, EOMONTH function require Analysis ToolPak Addins to be installed & activated. __ HTH Haseeb -- FORUM

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread Sam Mathai Chacko
-- > > > -- > *From:* dguillett1 > *To:* excel-macros@googlegroups.com > *Sent:* Thu, November 3, 2011 3:10:22 PM > > *Subject:* Re: $$Excel-Macros$$ Formula to count Fridays in a month > mis-reports February > > Your original pos

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread Paul Schreiner
1 To: excel-macros@googlegroups.com Sent: Thu, November 3, 2011 3:10:22 PM Subject: Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February Your original post said that you would use the FIRST DAY of each month. Don Guillett SalesAid Software dguille...@gmail.com -Ori

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread Paul Schreiner
AND VBA MACROS 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 SUMPRODUC

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread dguillett1
Your original post said that you would use the FIRST DAY of each month. Don Guillett SalesAid Software dguille...@gmail.com -Original Message- From: DaveO Sent: Thursday, November 03, 2011 1:53 PM To: MS EXCEL AND VBA MACROS Subject: Re: $$Excel-Macros$$ Formula to count Fridays

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread DaveO
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)

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread DaveO
Thanks, Don and Sam- I appreciate your responses and I'll study them to understand them fully. -- 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 Advi

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread Paul Schreiner
, As long as ever you can.” - John Wesley - From: DaveO To: MS EXCEL AND VBA MACROS Sent: Thu, November 3, 2011 1:58:26 PM Subject: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February I've wr

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread Sam Mathai Chacko
> > Don Guillett > SalesAid Software > dguille...@gmail.com > -Original Message- From: DaveO > Sent: Thursday, November 03, 2011 12:58 PM > To: MS EXCEL AND VBA MACROS > Subject: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports > February > > > I&

Re: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread dguillett1
try =4+(DAY(B$1+34)-Original Message- From: DaveO Sent: Thursday, November 03, 2011 12:58 PM To: MS EXCEL AND VBA MACROS Subject: $$Excel-Macros$$ Formula to count Fridays in a month mis-reports February I've written this formula to count Fridays in a month, where cell b1 conta

$$Excel-Macros$$ Formula to count Fridays in a month mis-reports February

2011-11-03 Thread DaveO
I've written this formula to count Fridays in a month, where cell b1 contains a date such as 11/1/2011: =SUMPRODUCT(--(WEEKDAY(DATE(YEAR(B1),MONTH(B1),ROW($A$1:$A$31)))=6)) This formula works for any month except February. Can anyone suggest a reason why this happens? -- FORUM RULES (925+ member