Countif to show result show only once per match

Jocksteriom

New Member
Joined
Apr 25, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
A countif in column 'Q' will find the number of times a value appears in column 'P' and display the value. However, it will show the same result on multiple rows depending on how many times it finds a match.
How can I display the result on one row only (last row would be better) and the others to be empty or null

Copy of Parish Walk Finishers (2023).xlsx
PQR
6Dataactualdesired
7smith66
8smith6
9smith6
10smith6
11smith6
12smith6
13Jones33
14Jones3
15Jones3
ALL DATA
Cell Formulas
RangeFormula
Q7:Q15Q7=COUNTIF(P$7:P$15,P7)
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
There may be better ways, how about

=IF(COUNTIF(P$7:P7,P7)=1,COUNTIF(P$7:P$15,P7),"")
 
Upvote 0
From another thread of mine, try:
Excel Formula:
=IF((XMATCH(P7:P15,P7:P15,0,1)+ROW()-1)=ROW(P7:P15),P7:P15,"")
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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