Countifs formula not working

Confusedgirl

New Member
Joined
May 18, 2016
Messages
6
Column A Column B
Tests EarlyStart
FST_NANA 17/05/2016
SWCPITDIS 17/05/2016
SWCPITCOMP 18/05/2016
SWCPITDIS 18/05/2016
ZFLOW20 16/05/2016
FST_NANA 16/05/2016
POOL 16/05/2016
POOL 16/05/2016
POOL 16/05/2016
FST_NANA 18/05/2016
FST_NANA 16/05/2016


I would like to find out the number of tests that are required on each day. I have tried the calculation =COUNTIFS(Tests,D2,EarlyStart,E1) with a result of 0 which is incorrect. I've also tried =COUNTIF(Tests,D2)+COUNTIF(EarlyStart,E1). Both have not worked. Can someone please tell me where I am going wrong. It is driving me a bit crazy!!!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You have:

Row\Col
A​
B​
1​
TestsEarlyStart
2​
FST_NANA
17-May-16​
3​
SWCPITDIS
17-May-16​
4​
SWCPITCOMP
18-May-16​
5​
SWCPITDIS
18-May-16​
6​
ZFLOW20
16-May-16​
7​
FST_NANA
16-May-16​
8​
POOL
16-May-16​
9​
POOL
16-May-16​
10​
POOL
16-May-16​
11​
FST_NANA
18-May-16​
12​
FST_NANA
16-May-16​

From your description, it looked like you wanted to know how many tests are done on a given day (date)... If this is not what you are after, would you care to specify what is wanted by way of an example based on the ranges shown in the above exhibit?
 
Upvote 0
Hi,

That's exactly what I'm after.

I just wasn't sure what the "?*" means in the formula you suggested. Do i simply add those characters to the formula?
 
Upvote 0
I would like the number of each test per day. So for the 16/05/16 the count would be:
ZFLOW20 - 1
FST_NANA - 2
POOL - 3


For the 17/05/16
FST_NANA - 1
SWCPITDIS - 1

etc...
 
Upvote 0
I would like the number of each test per day. So for the 16/05/16 the count would be:
ZFLOW20 - 1
FST_NANA - 2
POOL - 3


For the 17/05/16
FST_NANA - 1
SWCPITDIS - 1

etc...

Are you trying to count:

1. tests on a given day say 16-May-2016?

2. (different) days a test say FST_NANA has been run?

Which one is it if any?
 
Upvote 0
The first option. The number of tests on a given day but broken down to the different types of tests.

You might want to run a pivot table: Select the data area including the headers and then run INSERT | PivotTable from the ribbon...

Row\Col
A​
B​
C​
D​
E​
15​
Count of TestsColumn Labels
16​
Row Labels
16-May-16​
17-May-16​
18-May-16​
Grand Total
17​
FST_NANA
2​
1​
1​
4​
18​
POOL
3​
3​
19​
SWCPITCOMP
1​
1​
20​
SWCPITDIS
1​
1​
2​
21​
ZFLOW20
1​
1​
22​
Grand Total
6​
2​
3​
11​
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,057
Messages
6,128,521
Members
449,456
Latest member
SammMcCandless

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