Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It has taken some time to finally come up with this formula, Chip
Pearson's page gets most of the credit. =IF($R $6TODAY(),SUMPRODUCT((Fiscal="F2008")*(quarter="q 2")*(WeekdayAll=4)),SUMPRODUCT((Fiscal="F2008")*(q uarter="Q2")*(WeekdayAll=4))- (SUM(IF(WEEKDAY($Q$6-1+ROW(INDIRECT("1:"&TRUNC($R$6-$Q $6)+1)))=4,1,0)))) $r$6 is today's date, $Q$6 is (december 1, 2007) the first day of the second quarter of our fiscal year (F2008) the formula uses those two dates to determine how many Thursdays remain in the quarter, (all of the Thursdays in the quarter minus all of Thursdays in the quarter prior to today's date. If the quarter has passed (quarter 1, sep-1-07 to nov-30-07) the formula display 0 remaining, if the quarter is in the future (q3) it displays the total number Thursdays in that quarter. I'm thinking the TRUNC might go, because I'm not dealing with times, unless I misunderstand. Naming the formula that appears twice might be an idea too... anything obvious to you more knowledgeble Excel-ers? Andy Fox |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2 y-axis want to use a macro to tighten the range on both | Charts and Charting in Excel |