Combined matrix sum countif calculation

RIC63

New Member
Joined
Jan 12, 2015
Messages
16
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
HI
I have the formula {=SUM(COUNTIF(BA69:BC83;$A$2:$F$2))} which counts how many values in $A$2:$F$2 are found in an area (BA69:BC83) ..and it works

I should modify it so that the number of occurrences found is returned and if there are none, instead of returning 0 (zero) it returns the letter 'x'... I tried to modify it :

=IF(SUM(COUNTIF(BA69:BC83,$A$2:$F$2))>0;"=(SUM(COUNTIF(BA69:BC83,$A$2:$F$2))";" x")

...without success,

any suggestions to use in excel 2021 ? Thank you
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=IFERROR(1/(1/SUM(COUNTIF(BA69:BC83,$A$2:$F$2)));"x")
 
Upvote 0
Solution
How about
Excel Formula:
=IFERROR(1/(1/SUM(COUNTIF(BA69:BC83,$A$2:$F$2)));"x")
Thank you Fluff

I had to adapt it to the syntax and function names of the Italian version

=SE.ERRORE(1/(1/SOMMA(CONTA.SE(AU69:AW83;$A$2:$F$2)));"x")

so use Ctrl+Shift+Enter for input and it works perfectly, thanks again
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,338
Members
449,218
Latest member
Excel Master

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