473,396 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using COUNTIFS for counting multiple criteria

MusoFreak200
G'day, thanks for reading.
ok here is my problem. I have a timetable in excel which I am counting the hours for cells in the right hand side under categories. I am attempting to combine different types into single counts.

I have been having trouble and have thought about using the following statement however it is not working

Expand|Select|Wrap|Line Numbers
  1. =COUNTIFS(B3:H22,"*Quiz*",B3:H22,"*Test*",B3:H22,"*Assessment*")
Where am I going wrong?
Attached Images
File Type: jpg Untitled.jpg (56.4 KB, 258 views)
May 20 '13 #1

✓ answered by MMcCarthy

The COUNTIFS function does not work this way. It allows you to select multiple criteria. So your formula would only give a results if all 3 were true. I would recommend instead using multiple COUNTIF functions as follows:

Expand|Select|Wrap|Line Numbers
  1. =COUNTIF(B3:H22,"*Quiz*")+COUNTIF(B3:H22,"*Test*")+COUNTIF(B3:H22,"*Assessment*")
That should give you the result you want.

6 4473
Rabbit
12,516 Expert Mod 8TB
In what way is it not working?
May 20 '13 #2
MMcCarthy
14,534 Expert Mod 8TB
The COUNTIFS function does not work this way. It allows you to select multiple criteria. So your formula would only give a results if all 3 were true. I would recommend instead using multiple COUNTIF functions as follows:

Expand|Select|Wrap|Line Numbers
  1. =COUNTIF(B3:H22,"*Quiz*")+COUNTIF(B3:H22,"*Test*")+COUNTIF(B3:H22,"*Assessment*")
That should give you the result you want.
May 20 '13 #3
Thank you mate I knew I was poking too closely at it.
However is there a way to get it to count regardless of the text case
May 20 '13 #4
MMcCarthy
14,534 Expert Mod 8TB
I'll have to think about that one, leave it with me.
May 21 '13 #5
MMcCarthy
14,534 Expert Mod 8TB
I just double checked it and COUNTIF is not case sensitive so it should find the text regardless of case.
May 21 '13 #6
That's odd Oh well thank you for your help
May 21 '13 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: ShyGuy | last post by:
I have a table with 4 fields. Three are used for criteria. I can get the DLookup to work with 1 criteria with the following but can't get it to work with 2 or three. NumofAppts = DLookup("",...
2
by: dskillingstad | last post by:
I'm trying to set up a parameter query based on an unbound form. This search form has about 5 text boxes where the user can type in values within each box and search a specific table based on the...
3
by: developing | last post by:
Hello How do I specify multiple criteria for FindFirst or FindRecord (or anything else) that takes the criteria from a form. (text field and number field) edit: this will be in the after...
1
by: 2D Rick | last post by:
I want to open a report using OpenReport and passing it a Where Clause with multiple criteria. I know the Where Clause below is way off but it conveys what I need. Dates are of string type. ...
0
by: ChadK | last post by:
I am trying to open a report based on what the user selects on a form. Each individual criteria works but when I try to combine to pass multiple criteria it doesn't. I have read what I can find on...
2
by: Emre DİNÇER | last post by:
is it possible to have a multiple criteria switch in C# switch(name , surname){ case "John","Smith" break; } thanks in advance
1
by: akirekab | last post by:
I am using DCount, but I am not able to find how to set simple multiple criteria. Here is sample of what i need. =DCount("PatientProfileID","qryFaceToFaceReason_EAP_VG","FaceToFaceReasonID=2"...
3
by: kstevens | last post by:
Please help. I know the sysntax is wrong. Here are some details. I am looking for the sum of past shipped items. I originally wrote this Dsum with only one criteria, but because of multiple...
1
by: Brendan Wolf | last post by:
Happy Halloween all, I have been struggling at work with a DLookup using multiple criteria. I would like a text box to display the results of a DLookup based on the values selected in three...
3
by: Brendan Wolf | last post by:
Happy Halloween all, I have been struggling at work with a DLookup using multiple criteria. I would like a text box to display the results of a DLookup based on the values selected in three...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.