Countif modification

Brew

Well-known Member
Joined
Sep 29, 2003
Messages
1,569
how do I modify the following formula to count only the "M" cell records in z11:z40, which also have a numeric result on the same row in the V column.
=COUNTIF(Z11:Z40,"M")
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
=SUMPRODUCT(--(Z11:Z40="M"),--ISNUMBER(V11:V40))
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
49,439
Office Version
  1. 365
Platform
  1. Windows
If I have understood correctly, this should work just as well:
=SUMPRODUCT(--(Z11:Z40="M"),V11:V40)
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Peter

Surely that won't work as a count if the numeric results are anything other than 1s?

Richard
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
49,439
Office Version
  1. 365
Platform
  1. Windows
Peter

Surely that won't work as a count if the numeric results are anything other than 1s?

Richard
Absolutely correct Richard, I had mis-interpreted the post completely. :oops:
 

Forum statistics

Threads
1,136,600
Messages
5,676,727
Members
419,647
Latest member
usas12gthr

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
Top