Countif top 5 highest value?

eshnider21

New Member
Joined
Jul 31, 2021
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
I have an issue how to use COUNTIF formula to count the top 5 highest value


EXAMPLE.xlsm
ABCDEFG
1COLUMN lCOLUMN 2COLUMN 3COLUMN4COUNT OF TOP S VALUES
2253129811
343589311
4663434111
54240871111
6987731221
7323338711
865116611
967966621
1059021911
1131565201
129277912
1387124111
1494496511
1588178921
169787431
17656466502
187412501
19964651111
2045798911
21667673221
Table 1
Cell Formulas
RangeFormula
G2:G21G2=COUNTIF(A2:D2,LARGE(A2:D2,2))
 

Attachments

  • FS.PNG
    FS.PNG
    166.4 KB · Views: 6
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try this.
Put the formula in E2, and copy E2 to E3:E21.
Excel Formula:
=(SUMPRODUCT((LARGE(A$2:A$21,ROW($E$1:$E$5))=A2)*1)>0)*1+
(SUMPRODUCT((LARGE(B$2:B$21,ROW($E$1:$E$5))=B2)*1)>0)*1+
(SUMPRODUCT((LARGE(C$2:C$21,ROW($E$1:$E$5))=C2)*1)>0)*1+
(SUMPRODUCT((LARGE(D$2:D$21,ROW($E$1:$E$5))=D2)*1)>0)*1
 
Upvote 0

Forum statistics

Threads
1,214,635
Messages
6,120,660
Members
448,975
Latest member
sweeberry

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