
Originally Posted by
daddylonglegs
That formula is an "array formula" and needs to be confirmed with CTRL+SHIFT+ENTER
select cell with formula then press F2 key to select formula and then hold down CTRL and SHIFT keys and press ENTER. If done correctly you should see curly braces like { and } around the formula.
You can avoid "array entering" by using SUMPRODUCT, i.e.
=SUMPRODUCT(DATEDIF(A2:A23,B2:B23,"d"))
....or you probably don't need DATEDIF - for dates you can just subtract one from the other, i.e.
=SUMPRODUCT(B2:B23-A2:A23)
Bookmarks