Sum of datas with multiple conditions

einna77

New Member
Joined
Aug 3, 2022
Messages
18
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
I need help.

I want to know how many of this sample data contains blue (in column A), xl,s, and L (in column B), blanks (in column C) , blanks (in column D),

In this sample, the answer should be 2.

I hope you can help me. Thank you.
 

Attachments

  • F372430F-87AE-4360-8332-0CC0F57DABD9.jpeg
    F372430F-87AE-4360-8332-0CC0F57DABD9.jpeg
    19 KB · Views: 10

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi, you could try:

Excel Formula:
=SUM(COUNTIFS(A:A,"BLUE",C:C,"",D:D,"",B:B,{"XL","S","L"}))
 
Upvote 0
but not in google sheet

You could try like this in google sheets, which I think will work, but I'm not familiar enough with google sheets to know if there is a better way.

Excel Formula:
=SUMPRODUCT(--(A1:A1000="BLUE"),--(C1:C1000=""),--(D1:D1000=""),--ISNUMBER(MATCH(B1:B1000,{"XL","S","l"},0)))
 
Upvote 0
Solution
You could try like this in google sheets, which I think will work, but I'm not familiar enough with google sheets to know if there is a better way.

Excel Formula:
=SUMPRODUCT(--(A1:A1000="BLUE"),--(C1:C1000=""),--(D1:D1000=""),--ISNUMBER(MATCH(B1:B1000,{"XL","S","l"},0)))
Yes! It works! Thank you so much!!
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,537
Members
449,316
Latest member
sravya

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