The following expression works fine in Excel 2002 ver SP3:
=SUMIF(Carlos!B14:B74,"<6",Carlos!F14:F74)
When values in B are less than 6 the corresponding values in F are summed.
However, I do not know how to write in the correct format when I wish to sum
values in F for the B values of 6, 7, 8, and 9.
Thanks in advance for any help.
Tyro - 18 Jan 2008 02:48 GMT
You could use:
=SUMPRODUCT(--(Carlos!B14:B74>=6),--(Carlos!B14:B74<=9),Carlos!F14:F74)
Tyro
> The following expression works fine in Excel 2002 ver SP3:
>
[quoted text clipped - 5 lines]
>
> Thanks in advance for any help.
Rick Stahl - 18 Jan 2008 03:11 GMT
WOW ! Great ! Thank you. I will give it a try.
If you don't mind me asking, where could I learn the formats for these types
of expressions ?
Thanks again !
> You could use:
> =SUMPRODUCT(--(Carlos!B14:B74>=6),--(Carlos!B14:B74<=9),Carlos!F14:F74)
[quoted text clipped - 10 lines]
>>
>> Thanks in advance for any help.
Tyro - 18 Jan 2008 03:20 GMT
Among others
http://xldynamic.com:80/source/xld.SUMPRODUCT.html
Do a google for Excel sumproduct.
> WOW ! Great ! Thank you. I will give it a try.
>
[quoted text clipped - 17 lines]
>>>
>>> Thanks in advance for any help.
Bob Phillips - 18 Jan 2008 13:35 GMT
A simpler way is
=SUMIF(Carlos!B14:B74,">=6",Carlos!F14:F74)-SUMIF(Carlos!B14:B74,">9",Carlos!F14:F74)

Signature
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> WOW ! Great ! Thank you. I will give it a try.
>
[quoted text clipped - 17 lines]
>>>
>>> Thanks in advance for any help.
Rick Stahl - 18 Jan 2008 23:46 GMT
Thank you both for your help. I got it working ! I also appreciate the web
site.
>A simpler way is
>
[quoted text clipped - 21 lines]
>>>>
>>>> Thanks in advance for any help.
T. Valko - 18 Jan 2008 04:33 GMT
Another one:
=SUM(SUMIF(Carlos!B14:B74,{6,7,8,9},Carlos!F14:F74))

Signature
Biff
Microsoft Excel MVP
> The following expression works fine in Excel 2002 ver SP3:
>
[quoted text clipped - 5 lines]
>
> Thanks in advance for any help.