=SUMIF(range,criteria,sum_range)
=SUMIF(A1:A100,"Credit",B1:B100)

Signature
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03
----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------
> Hey Everyone,
>
[quoted text clipped - 6 lines]
>
> Jonas
Jonas Magcase - 31 Mar 2004 23:14 GMT
Thanks Ken!
> =SUMIF(range,criteria,sum_range)
>
[quoted text clipped - 15 lines]
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.634 / Virus Database: 406 - Release Date: 18/03/2004
Ken Wright - 31 Mar 2004 23:33 GMT
You're most welcome :-)

Signature
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03
----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------
<snip>