Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
David wrote
Bob Phillips wrote MsgBox Evaluate("=MAX(IF(WEEKDAY(C2:AA2)=6,C2:AA2))") I don't know what I was thinking. There's really no need to scan all the dates. Since V2 (4th Friday) will always hold a date, and AA2 (5th Friday) may or may not, I only need to look at those 2 cells: LastFri = Application.Max([C2], [AA2]) All brackets not needed: LastFri = Application.Max([V2, AA2]) or standard convention: LastFri = Application.Max(Range("V2, AA2")) -- David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i fax a scan | Excel Discussion (Misc queries) | |||
Virus scan | Setting up and Configuration of Excel | |||
how do i scan documents | Setting up and Configuration of Excel | |||
Scan Forms | Excel Discussion (Misc queries) | |||
Scan range of rows and export to 2nd worksheet | Excel Programming |