L
Larry
Scenario:
Columns F,G, and H have dates (exported from Access). Some
of the cells in F and G are empty (thanks %-( to Access,
ISBLANK fails, but NOT(ISNUMBER()) succeeds).
Target Date in K323.
Want this sum:
if there is a date in F, add 1 if F > K323
if no date in F, but date in G, add 1 if G > K323
if no date in F or G, but date in H, add 1 if H > K323
The following (legibly formatted) works (thank
xlDynamic.com Web page). Can it be simplified? Can I
indirect the 296 and 326 so that I can copy the formula
elsewhere for another part of F,G,H (different # of rows)?
=SUMPRODUCT(--((F296:F326)>K323),--(ISNUMBER(F296:F326)))
+SUMPRODUCT(--NOT(ISNUMBER(F296:F326)),
--((G296:G326)>K323),--(ISNUMBER(G296:G326)))
+SUMPRODUCT(--NOT(ISNUMBER(F296:F326)),
--NOT(ISNUMBER(G296:G326)),
--((H296:H326)>K323),--(ISNUMBER(H296:H326)))
Columns F,G, and H have dates (exported from Access). Some
of the cells in F and G are empty (thanks %-( to Access,
ISBLANK fails, but NOT(ISNUMBER()) succeeds).
Target Date in K323.
Want this sum:
if there is a date in F, add 1 if F > K323
if no date in F, but date in G, add 1 if G > K323
if no date in F or G, but date in H, add 1 if H > K323
The following (legibly formatted) works (thank
xlDynamic.com Web page). Can it be simplified? Can I
indirect the 296 and 326 so that I can copy the formula
elsewhere for another part of F,G,H (different # of rows)?
=SUMPRODUCT(--((F296:F326)>K323),--(ISNUMBER(F296:F326)))
+SUMPRODUCT(--NOT(ISNUMBER(F296:F326)),
--((G296:G326)>K323),--(ISNUMBER(G296:G326)))
+SUMPRODUCT(--NOT(ISNUMBER(F296:F326)),
--NOT(ISNUMBER(G296:G326)),
--((H296:H326)>K323),--(ISNUMBER(H296:H326)))