Sum if multiple condition

popac

New Member
Joined
Dec 5, 2005
Messages
2
I need help with a formula to calculate the sum of 20% of value in column F if the value in column E is 3 and the month in column C is Jan (resp. Feb Mar...). Sometimes the field in Column C is empty.
A B C D E F
1 01-Jan-05 3 $1500
2 05-Feb-05 3 $2500
3 02-Jan-05 2 $5000
4 09-Jan-05 3 $2000

When the value in column E is 2 I need to sum 30% of the value in F and check the month in column D.

Thank You
Cris
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
A B C D E F
1 01-Jan-05 3 $1500
2 05-Feb-05 3 $2500
3 02-Jan-05 2 $5000
4 09-Jan-05 3 $2000

When the value in column E is 2 I need to sum 30% of the value in F and check the month in column D.

It looks like column D has prices in it, not the months
 
Upvote 0
A B C D E F
1 01-Jan-05 3 $1500
2 05-Feb-05 3 $2500
3 02-Jan-05 2 $5000
4 09-Jan-05 3 $2000

When the value in column E is 2 I need to sum 30% of the value in F and check the month in column D.

It looks like column D has prices in it, not the months... or are you dividing the date into 3 columns? if not where are the info in E and F? Also, what should happen if the date is blank?
 
Upvote 0
Sorry, I had an extra ")".



=SUMPRODUCT((B1:B100="JAN")*(E1:E100=3)*(F1:F100)*0.2)
 
Upvote 0
If a cell in Column C is empty, I assume that corresponding value in Column F is also empty. If this is correct, try...

=SUMPRODUCT(--(TEXT(C1:C4,"mmm")=H1),--(E1:E4=I1),F1:F4)*J1

...where H1 contains your first criterion, such as Jan, I1 contains your second criterion, such as 3, and J1 contains your third criterion, such as 20%. Otherwise, try the following instead...

=SUMPRODUCT(--(C1:C4<>""),--(TEXT(C1:C4,"mmm")=H1),--(E1:E4=I1),F1:F4)*J1

Did you want to include the year as part of your criteria?
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top