Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

sumif or sumproduct

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kim - 13 Mar 2008 05:39 GMT
hello,

if i have 4 columns like this:
3       3500    2    10
5    2000    4    35
5    4000    5    12
3    1100    1    5
3    5000    0    8
5    6000    0    25
5    7000    8    15
           
i want to get The sum of column D minus column C if they met 2 criteria:  if
it is equal 3 on column A, and  between 2000 to 4000 of column B, which
formula should i use?  Please help.  thanks
T. Valko - 13 Mar 2008 05:57 GMT
Try this:

=SUMPRODUCT(--(A1:A7=3),--(B1:B7>2000),--(B1:B7<4000),D1:D7-C1:C7)

Based on your sample data the result is 8.

Signature

Biff
Microsoft Excel MVP

> hello,
>
[quoted text clipped - 11 lines]
> it is equal 3 on column A, and  between 2000 to 4000 of column B, which
> formula should i use?  Please help.  thanks
kim - 13 Mar 2008 19:15 GMT
it works.  thanks so much

> Try this:
>
[quoted text clipped - 17 lines]
> > it is equal 3 on column A, and  between 2000 to 4000 of column B, which
> > formula should i use?  Please help.  thanks
T. Valko - 13 Mar 2008 19:42 GMT
You're welcome. Thanks for the feedback!

Signature

Biff
Microsoft Excel MVP

> it works.  thanks so much
>
[quoted text clipped - 20 lines]
>> > it is equal 3 on column A, and  between 2000 to 4000 of column B, which
>> > formula should i use?  Please help.  thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.