countifs showing no results

aamir

Board Regular
Joined
Feb 17, 2010
Messages
116
i using following formula but it returns no results
Code:
COUNTIFS($O:$O,S16,$B:$B,R16,$P:$P,$T$15)
O:O, is list of names S16, is specific name B:B, is Items list R16, is specific item P:P, is only month (mmm) derived from a date column (dd/mm/yy) T15, is month [Jan, Feb, Mar,......Dec] i think i have some problem with date in last selection.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
The month and date would not be recognised by couintifs in the way you need, try

=SUMPRODUCT(($O:$O=S16)*($B:$B=R16)*(TEXT($P:$P,"mmm")=$T$15))

Not sure how your sheet will cope with full columns in that formula so you might be better off restricting it to populated ranges.
 
Upvote 0
i using following formula but it returns no results
Code:
COUNTIFS($O:$O,S16,$B:$B,R16,$P:$P,$T$15)
O:O, is list of names S16, is specific name B:B, is Items list R16, is specific item P:P, is only month (mmm) derived from a date column (dd/mm/yy) T15, is month [Jan, Feb, Mar,......Dec] i think i have some problem with date in last selection.

Let's suppose we are interested in obtaining a count for the May month of 2010...

Let T15 house a first day date like 1-May-2010.

Now invoke:

=COUNTIFS($O:$O,S16,$B:$B,R16,$P:$P,">="&$T$15,$P:$P,"<"&EDATE($T$15,1))
 
Upvote 0
The month and date would not be recognised by couintifs in the way you need, try

=SUMPRODUCT(($O:$O=S16)*($B:$B=R16)*(TEXT($P:$P,"mmm")=$T$15))

Not sure how your sheet will cope with full columns in that formula so you might be better off restricting it to populated ranges.

It takes hell of time to calculate...
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,418
Members
449,449
Latest member
Quiet_Nectarine_

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