Pam
Pam

Reputation: 399

Why does Excel SUMIF function return #ERROR

Learning SUMIF right now on excel. Why does this line work in a cell:

 =SUMIF(A:A,"<1/3/2020" ,F2:F102)

But this one gives me "#ERROR!" where cell O2 is the date 1/3/2020

 =SUMIF(A:A, <O2 ,F2:F102)

Upvotes: 0

Views: 44

Answers (1)

basic
basic

Reputation: 11968

Change <O2 to "<" & O2

=SUMIF(A:A, "<" & O2 ,F2:F102)

Upvotes: 1

Related Questions