Returning values from the most common word in order

Mitzescu

New Member
Joined
Jan 27, 2020
Messages
2
Office Version
  1. 365
Hi,
I'm trying to retrun values from the most common word in a column, but in order, wihtout empty cells. I used the INDEX MATCH formula to determine that dog is the most common word, but i don't know i to take them to the 3rd column in order
Column1 Column2 Column3 (the result i want)
dog 7 7
dog 2 2
cat 3 4
dog 4
cat 5
cat 9


Thank you so much if you can help me!
I wish you a great day!
 

Attachments

  • Screenshot (2).png
    Screenshot (2).png
    54 KB · Views: 5

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Maybe something like

ZFluff New.xlsm
ABC
1dog
2dog77
3dog22
4cat34
5dog4
6cat5
7cat9
Grid
Cell Formulas
RangeFormula
C2:C4C2=FILTER(B2:B7,A2:A7=C1)
Dynamic array formulas.
 
Upvote 0
If you don't yet have the dynamic arrays.

ZFluff New.xlsm
ABCD
1dog
2dog777
3dog222
4cat344
5dog4 
6cat5 
7cat9
Grid
Cell Formulas
RangeFormula
C2:C4C2=FILTER(B2:B7,A2:A7=C1)
D2:D6D2=IFERROR(INDEX($B$2:$B$7,AGGREGATE(15,6,(ROW($B$2:$B$7)-ROW($B$2)+1)/($A$2:$A$7=$C$1),ROWS(D$2:D2))),"")
Dynamic array formulas.
 
Upvote 0
@Fluff
Wow, Filter works very nice.
Second formula works as well, just the last thing ROWS(D$2:D2))),"") , d2 turns into d3 and so on. But my most common word is not necessarily the first, so i used the INDEX MATCH formula a put it in a cell as a reference.

Anyway. Thank you so much!!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

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