Dear Ron,
Thank you for your suggestion. You check in it whether the cell contains
a
number, but I need to check whether it contains a date, for example by
asking =CELL("Format";A1)="D1". If, however, I don't refer to a singel
cell,
but to a range of cells (=CELL("Format";A1:V1)="D1") the formular returns
only the formating value of the 1st cell in the range. - Do you know any
alternative or do you know what I am doing wrong?
Marcel
Actually, if the range of cells may contain dates, text, blanks, or
errors....
Try this ARRAY FORMULA:
=SUM(IF(ISNUMBER(WEEKDAY(A1:A50-1)),--(WEEKDAY(A1:A50,2)<7)))
Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].
Is that something you can work with?
***********
Regards,
Ron
XL2002, WinXP
:
Try something like this:
=SUMPRODUCT((A1:A50>0)*(WEEKDAY(A1:A50)>1))
Is that something you can work with?
***********
Regards,
Ron
XL2002, WinXP
:
Hello,
can anybody tell me how to formulate:
"Count all cells in a row which contain a date (not every cell
contains
a
date) that does not fall on a Sunday"?
Somehow I just don't seem to get it.
Thank you very much in advance,
Marcel