Sumif

iamlisa

New Member
Joined
Sep 8, 2014
Messages
3
Hi,

Appreciate your help for below data;

A B D
16030001 CTC BY 7TH 100.00
16030002 TS PERDIM BY 7TH 200.00
16030003 TS BY 7TH 300.00
TS SHELL 100.00
TS BY 7TH APP 20.00
SC BY 7TH 80.00
SC BY 7TH FLEX 70.00
SC 200.00
PERDIM 50.00
TS 10.00
SHELL 10.00
BY 7TH 10.00
CTHLBB BY 7TH 60.00

I would like to sum if;
1) Column A is blank then column B contain TS but does not contain BY 7TH & FLEX
2) Column A is blank then column B contain TS & SC but does not contain BY &7TH.

Thank you :)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Can't make head nor tail of the data - sorry. Could you provide it in tabular format, please?
 
Upvote 0
The exhibit requires reworking to make sense of it... That said:

1.

=SUMIFS(D:D,A:A,"=",B:B,"=TS*",B:B,"<>*BY 7TH & FLEX")

>> 130 for the exhibit you posted.

2.

=SUM(SUMIFS(D:D,A:A,"=",B:B,{"TS*","SC*"},B:B,"<>*BY 7TH*"))

>> 310 for the exhibit you posted.

Note. It's better to also provide the expect results along with the data and questions.
 
Upvote 0

Forum statistics

Threads
1,215,421
Messages
6,124,806
Members
449,191
Latest member
rscraig11

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