• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Countifs formula|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Countifs formula|General Excel Questions & Answers|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Countifs formula
sp_PrintTopic sp_TopicIcon
Countifs formula
Avatar
Akbar Afshar

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
January 13, 2020
sp_UserOfflineSmall Offline
1
January 13, 2020 - 7:54 pm
sp_Permalink sp_Print

Please correct my formula

=COUNTIFS(DIS!B:B,{"Taimani","chaman","Khushalkhan"},DIS!E:E,{"Group Loan","GMRB"},DIS!F:F,{"Trade","Trade SS"})

sp_AnswersTopicSeeAnswer See Answer
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1826
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
January 14, 2020 - 8:09 pm
sp_Permalink sp_Print

Try:
=COUNTIFS(DIS!B:B,"Taimani",DIS!B:B,"chaman",DIS!B:B,"Khushalkhan",DIS!E:E,"Group Loan",DIS!E:E,"GMRB")

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 649
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
3
January 15, 2020 - 2:55 am
sp_Permalink sp_Print

You can't use three criteria arrays (assuming you want all possible combinations) like that. Are there other options in column F that begin with "Trade" that you need to exclude? If not, you could use:

 

=SUM(COUNTIFS(DIS!B:B,{"Taimani","chaman","Khushalkhan"},DIS!E:E,{"Group Loan";"GMRB"},DIS!F:F,"Trade*"))

 

Note the semicolons in the second array rather than commas.

sp_AnswersTopicAnswer
Answers Post
Avatar
Akbar Afshar

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
January 13, 2020
sp_UserOfflineSmall Offline
4
January 15, 2020 - 9:12 pm
sp_Permalink sp_Print

Catalin Bombea said
Try:
=COUNTIFS(DIS!B:B,"Taimani",DIS!B:B,"chaman",DIS!B:B,"Khushalkhan",DIS!E:E,"Group Loan",DIS!E:E,"GMRB")  

Thank you Catalin Bombea but it does not work

Avatar
Akbar Afshar

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
January 13, 2020
sp_UserOfflineSmall Offline
5
January 15, 2020 - 9:16 pm
sp_Permalink sp_Print sp_EditHistory

Thank you so much Mr Velouria  it is so helpful and if I want to extend my formula such below so could you please fix it to me?

=SUM(COUNTIFS(DIS!B:B,{"Taimani","chaman","Khushalkhan"},DIS!E:E,{"Group Loan";"GMRB"},DIS!F:F,{"Trade","Services","Agriculture"},DIS!C:C,"<200000"))

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 649
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
6
January 16, 2020 - 8:50 pm
sp_Permalink sp_Print

I don't give out contact info, I'm afraid.

 

As I mentioned before, you cannot use more than two arrays in a formula like this. I would suggest you use DCOUNT instead. For that you will need a spare couple of cells somewhere for the criteria formula - let's say cells F1 and F2. Leave the first cell (F1) blank, then in the one underneath (F2) enter this formula:

 

=AND(OR(DIS!B2={"Taimani","chaman","Khushalkhan"}),OR(DIS!E2={"Group Loan","GMRB"}),OR(DIS!F2={"Trade","Services","Agriculture"}),DIS!C2<200000)

 

and then your count formula becomes simply:

=DCOUNTA(DIS!B:F,1,F1:F2)

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Louis Muti
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Blair Gallagher
Brandi Taylor
Hafiz Ihsan Qadir
Gontran Bage
adolfo casanova
Annestine Johnpulle
Priscila Campbell
Jeff Mikles
Aaron Butler
Maurice Petterlin
Forum Stats:
Groups: 3
Forums: 24
Topics: 6369
Posts: 27852

 

Member Stats:
Guest Posters: 49
Members: 32359
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.