COUNTIF line varies

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
591
Office Version
  1. 365
Platform
  1. Windows
I have the below standings with names and averages. I have an table in alphabetical order with numbers in a row (25 columns) ranging from 1 to 5. I want to do a COUNTIF as to how many 1's 2's 3's 4's & 5's are in a row for a specific person. Problem is that names on below list will be in random order based on standing and the COUNTIF table is in alphabetical order. Need to have a COUNTIF do the count in the row of the name (ABC in this case).

Thank you,
James


Standing​
Names​
Average​
1​
2​
3​
4​
5​
1​
ABC
5.00​
0​
0​
0​
0​
1​
1​
DEF
5.00​
1​
GHI
5.00​
1​
JKL
5.00​
5​
MNO
4.00​
5​
PQR
4.00​
5​
STV
4.00​
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Something like this perhaps?

ABCDEFG
1ABC301020
2DEF445300
3GHI551511
4JKL505510
5
6COUNT012345
7GHI030003
8DEF200121
Sheet1
Cell Formulas
RangeFormula
B6:G6B6=SEQUENCE(,6,0)
B7:G8B7=COUNTIF(XLOOKUP(A7,A$1:A$4,B$1:G$4),B$6#)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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