Why this SUMPRODUCT statements returns zero?

V

Vince

Worksheet has following structure and I am trying to create statement that
states if year = 2007, AND account = 57110, sum amounts. The statement below
returns a zero. Any suggestions?

Thanks in advance


Column C Column G Column F
10/17/2007 11-70-34180-57110 $550.00

SUMPRODUCT(--(YEAR(C6:C6550)=2007),--(RIGHT($G$6:$G$6550,5)=57110),$F$6:$F$6550)
 
B

Bob Phillips

=SUMPRODUCT(--(YEAR(C6:C6550)=2007),--(RIGHT($G$6:$G$6550,5)="57110"),$F$6:$F$6550)

perhaps

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
M

Mike H

Vince,

If your dates are formatted correctly then its going wrong on the 57110
which will be text so try this

=SUMPRODUCT(--(YEAR(C6:C6550)=2007),--(RIGHT($G$6:$G$6550,5)="57110"),$F$6:$F$6550)


Mike
 
V

Vince

Thanks Mike, that was all it took! Sometimes the easiest and smallest things
trip you up the most!

Thanks again,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top