countifs

jtodd

Board Regular
Joined
Aug 4, 2014
Messages
194
Hi Simple one I am sure -
Can anyone tell me why this formula results in #Value

=COUNTIFS(H17,"=DHL",M17:S17,"=*R*")
H I M N O P Q R S

<colgroup><col style="mso-width-source:userset;mso-width-alt:3913; width:80pt" span="2" width="107"> <col style="mso-width-source:userset;mso-width-alt:2450;width:50pt" width="67"> <col style="mso-width-source:userset;mso-width-alt:2157;width:44pt" width="59"> <col style="mso-width-source:userset;mso-width-alt:1316; width:27pt" span="6" width="36"> </colgroup><tbody>
[TD="class: xl65, width: 107"]KNOWHOW CSC[/TD]
[TD="class: xl65, width: 107"]KNOWHOW CSC[/TD]
[TD="class: xl66, width: 67"] [/TD]
[TD="class: xl67, width: 59"] [/TD]
[TD="class: xl67, width: 36"] [/TD]
[TD="class: xl67, width: 36"] [/TD]
[TD="class: xl67, width: 36"]RS[/TD]
[TD="class: xl67, width: 36"] [/TD]
[TD="class: xl67, width: 36"] [/TD]
[TD="class: xl67, width: 36"] [/TD]

[TD="class: xl65"]DHL[/TD]
[TD="class: xl65"]DHL[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RSC[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RSC[/TD]
[TD="class: xl67"]RS[/TD]

[TD="class: xl65"]KNOWHOW CSC[/TD]
[TD="class: xl65"]KNOWHOW CSC[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"] [/TD]

[TD="class: xl65"]KNOWHOW CSC[/TD]
[TD="class: xl65"]KNOWHOW CSC[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]RS[/TD]

[TD="class: xl65"]KNOWHOW CSC[/TD]
[TD="class: xl65"]KNOWHOW CSC[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]S[/TD]
[TD="class: xl67"]S[/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"] [/TD]

[TD="class: xl65"]DHL[/TD]
[TD="class: xl65"]DHL[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"]S[/TD]
[TD="class: xl67"]RSC[/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"] [/TD]

[TD="class: xl65"]DHL[/TD]
[TD="class: xl65"]DHL[/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RSC[/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"] [/TD]
[TD="class: xl67"]RS[/TD]
[TD="class: xl67"] [/TD]

</tbody>

Any help
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Can anyone tell me why this formula results in #Value

Hi, because COUNTIFS() requires all the ranges to be the same size.

Maybe you wanted..

=IF(H17="DHL",COUNTIFS(M17:S17,"*R*"),0)
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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