countif to present actual results?

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi,
so i have this example below,
instead of just counting how many of values from f2:h2 appears in o2:q3 i want the results to be spilled, like instead of the current results in s2:u2 1-1-0 i want it to be 13-14 and 13-15, with no blanks
how?

test
ABCDEFGHIJKLMNOPQRSTU
1set1set2
21314151613-1413-1513-161317181513-1713-1813-15110
31413162013-1414-1614-20
test
Cell Formulas
RangeFormula
S2:U2S2=COUNTIF(O2:Q3,F2:H2)
Dynamic array formulas.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Sorry ... but I do not understand ...
1. What is the input ?
2. what is the expected output ?
 
Upvote 0
How about
Excel Formula:
=LET(a,TOROW(O2:Q3),FILTER(a,COUNTIFS(F2:H2,a)))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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