Thread: Match and add
View Single Post
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Doc

sorry, i'm totally confused ... are you saying, if there is a 1 in A335 and
in A19 then sum E22,E25,E28 & E31
and if there is a 2 in A337 and A32 then add E35, E38, E41 and E44

if so then use the following formula in E335
=IF(AND(A335=1,A19=1),E22+E25+E28+E31,0)
and in E337
=IF(AND(A337=2,A32=2),E35+ E38+E41+E44,0)

Hope this helps
Cheers
JulieD

"Doc" wrote in message
...
Hello
How can I combine a match funtion and sum.
A19=1
A32=2
A45=3...
A318=24
A335=1
A337=2
A339=3...
A381=24
In e335 I would like to match the 1 in a335 to the 1 in A19 and then add
e22,e25,e28,e31
in e337 I would like to match the 2 in a337 to the 2 in A32 and then add
e35,e38,e41,e44

I hope I have not bee too confusing in my explanation.
Thanks