need formula help please!

LIZEEY

New Member
Joined
Feb 1, 2024
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Hi, i need a formula for the below critera, i have tried all morning! the formula below works if i just have one critera for column f but returns a zero value when i add both 28 & 38. I'm lost! it doesnt take much i know!

sum the total count if column a contains "15" and column f contains "28" or "38" and column ap contains "30270" or "30290" or "30297"

=SUM(COUNTIFS($A$21:$A$15004,156,$F$21:$F$15004,{"28","38"},$AP$21:$AP$15004,{"30101","30270","30275","30290","30297","30550","30560"""}))
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
When using 2 arrays one needs to be vertical & the other horiaontal, try
Excel Formula:
=SUM(COUNTIFS($A$21:$A$15004,156,$F$21:$F$15004,{"28";"38"},$AP$21:$AP$15004,{"30101","30270","30275","30290","30297","30550","30560"}))
 
Upvote 0
Solution
thank you universe for clever people!!! thanks so much! wishing i would have asked here 2 hours ago now :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,882
Messages
6,175,164
Members
452,615
Latest member
bogeys2birdies

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