Dynamic Array Count Games Played

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,176
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am looking for a Dynamic Array formula that can get the quarterback and sum games played in one formula. Thanks in advance!
Book19
ABCDEFG
1Eli Manning (15) / Geno Smith (1)Eli Manning 15Eli Manning 35
2Eli Manning (16)Geno Smith 1Geno Smith 1
3Daniel Jones (12) / Eli Manning (4)Eli Manning 16Daniel Jones 59
4Daniel Jones (14) / Colt McCoy (2)Daniel Jones 12Colt McCoy 2
5Daniel Jones (11) / Mike Glennon (4) / Jake Fromm (2)Eli Manning 4Mike Glennon 4
6Daniel Jones (16) / Davis Webb (1)Daniel Jones 14Jake Fromm 2
7Daniel Jones (6) / Tommy DeVito (6) / Tyrod Taylor (4)Colt McCoy 2Davis Webb 1
8Daniel Jones 11Tommy DeVito 6
9Mike Glennon 4Tyrod Taylor 4
10Jake Fromm 2
11Daniel Jones 16
12Davis Webb 1
13Daniel Jones 6
14Tommy DeVito 6
15Tyrod Taylor 4
Sheet1
Cell Formulas
RangeFormula
C1:D15C1=WRAPROWS(TOCOL(LET(x,TEXTSPLIT(TEXTJOIN("|",1,A1:A7),{" / ","(",")"},"|",,,""),IF(x<>"",x,1/0)),3), 2)
F1:F9F1=UNIQUE(C1:C15)
G1:G9G1=SUM(IF($C$1:$C$15=F1,--$D$1:$D$15,""))
Dynamic array formulas.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about
Fluff.xlsm
ABCD
1Eli Manning (15) / Geno Smith (1)Eli Manning35
2Eli Manning (16)Geno Smith1
3Daniel Jones (12) / Eli Manning (4)Daniel Jones59
4Daniel Jones (14) / Colt McCoy (2)Colt McCoy2
5Daniel Jones (11) / Mike Glennon (4) / Jake Fromm (2)Mike Glennon4
6Daniel Jones (16) / Davis Webb (1)Jake Fromm2
7Daniel Jones (6) / Tommy DeVito (6) / Tyrod Taylor (4)Davis Webb1
8Tommy DeVito6
9Tyrod Taylor4
10
Data
Cell Formulas
RangeFormula
C1:D9C1=LET(d,DROP(REDUCE("",A1:A7,LAMBDA(x,y,VSTACK(x,WRAPROWS(TOCOL(TRIM(TEXTSPLIT(y,{" /","(",")"},,1)),2),2)))),1),u,UNIQUE(INDEX(d,,1)),HSTACK(u,MAP(u,LAMBDA(m,SUM(IF(INDEX(d,,1)=m,--INDEX(d,,2),0))))))
Dynamic array formulas.
 
Upvote 1
Beautiful!! Thank you Fluff! Have a fantastic New Year! God bless!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Book2
ABCDE
1Eli Manning (15) / Geno Smith (1)Eli Manning35
2Eli Manning (16)Geno Smith1
3Daniel Jones (12) / Eli Manning (4)Daniel Jones59
4Daniel Jones (14) / Colt McCoy (2)Colt McCoy2
5Daniel Jones (11) / Mike Glennon (4) / Jake Fromm (2)Mike Glennon4
6Daniel Jones (16) / Davis Webb (1)Jake Fromm2
7Daniel Jones (6) / Tommy DeVito (6) / Tyrod Taylor (4)Davis Webb1
8Tommy DeVito6
9Tyrod Taylor4
10
Sheet1
Cell Formulas
RangeFormula
C1:D9C1=LET( a, TEXTSPLIT(TEXTJOIN(" / ",1,A1:A7),," / "), b, TEXTBEFORE(a, " ("), c, TEXTAFTER(a, " ("), d, --LEFT(c,LEN(c)-1), e, UNIQUE(b), f, MMULT(--(e=TRANSPOSE(b)), d), HSTACK(e,f))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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