Calculating the highest recurring "data" within a single cell

BrerRabbit

Board Regular
Joined
Aug 20, 2023
Messages
84
Office Version
  1. 2021
  2. 2016
  3. 2013
Platform
  1. Windows
Yep, you read that correctly. And I know how unusual this sounds, but this is where I'm at.

I have a column of formulae that has extracted data from various other cells using the concatenate formula. There can be up to 17 separate instances, and as little as none or just one. The code can be a recurring code, or different. They are always three characters long, and separated by a comma. Otherwise it's just completely empty. Now I have to analyse what is within this one cell. I need to know the highest recurrence of the single three character code. I have absolutely no idea even how to start figuring this one out. If there even is an answer. If you don't believe that there is an answer to this one, please let me know.

APP,
APP, APP,
ORA, APP, ORA, APP,
CUC,
BAN, BAN, BAN, BAN, BAN, BAN, ORA,
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
It's a little unclear what you are asking. What would be the correct highest recurrence for the data shown?
 
Upvote 0
Maybe this (but this is in 365):


Book3
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
1Names12345678910111213141516171234567891011121314151617
2APP,APPAPP - 1
3APP, APP,APPAPPAPP - 2
4ORA, APP, ORA, APP,ORAAPPORAAPPORA - 2APP - 2
5CUC,CUCCUC - 1
6BAN,BAN,BAN,BAN,BAN,BAN,ORA,BANBANBANBANBANBANORABAN - 6ORA - 1
7ACN, CAN, ANCACNCANANCACN - 1CAN - 1ANC - 1
Sheet1
Cell Formulas
RangeFormula
C1:R1,U1:AJ1C1=B1+1
B2,B5,B7:D7,B6:H6,B4:E4,B3:C3B2=TRIM(TOROW(TEXTSPLIT(A2,,",",TRUE)))
T2:T3,T5,T7:V7,T6:U6,T4:U4T2=TOROW(FILTER(UNIQUE(TOCOL(B2:R2)),UNIQUE(TOCOL(B2:R2))<>""))& " - "&COUNTIF($B2:$R2,TOROW(FILTER(UNIQUE(TOCOL(B2:R2)),UNIQUE(TOCOL(B2:R2))<>"")))
 
Upvote 0
Solution
Thank you. This'll work nicely.
Maybe this (but this is in 365):


Book3
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
1Names12345678910111213141516171234567891011121314151617
2APP,APPAPP - 1
3APP, APP,APPAPPAPP - 2
4ORA, APP, ORA, APP,ORAAPPORAAPPORA - 2APP - 2
5CUC,CUCCUC - 1
6BAN,BAN,BAN,BAN,BAN,BAN,ORA,BANBANBANBANBANBANORABAN - 6ORA - 1
7ACN, CAN, ANCACNCANANCACN - 1CAN - 1ANC - 1
Sheet1
Cell Formulas
RangeFormula
C1:R1,U1:AJ1C1=B1+1
B2,B5,B7:D7,B6:H6,B4:E4,B3:C3B2=TRIM(TOROW(TEXTSPLIT(A2,,",",TRUE)))
T2:T3,T5,T7:V7,T6:U6,T4:U4T2=TOROW(FILTER(UNIQUE(TOCOL(B2:R2)),UNIQUE(TOCOL(B2:R2))<>""))& " - "&COUNTIF($B2:$R2,TOROW(FILTER(UNIQUE(TOCOL(B2:R2)),UNIQUE(TOCOL(B2:R2))<>"")))
thank you. This will work nicely.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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