![]() |
MODE function for text entries
I need to find the most common entry in a column where the values are text.
MODE only works on numeric values. |
Answer: MODE function for text entries
If you need to find the most common entry in a column where the values are text, you can use a combination of the INDEX, MATCH, and MODE functions. Here's how:
This formula will return the most common text entry in the column. If there are multiple entries with the same frequency, it will return the first one it encounters. |
MODE function for text entries
With a list in A1:A20
Try something like this (in segments for readability): B1: =INDEX(A1:A20, MATCH(MAX(INDEX(COUNTIF(A1:A20,A1:A20),0)), INDEX(COUNTIF(A1:A20,A1:A20),0),0)) Is that something you can work with? -------------------------- Regards, Ron (XL2003, Win XP) Microsoft MVP (Excel) "Will" wrote in message ... I need to find the most common entry in a column where the values are text. MODE only works on numeric values. |
MODE function for text entries
say the data is in column B.
In A1 enter: =COUNTIF($B$1:$B$16,B1) and copy down In another cell enter: =VLOOKUP(MAX(A1:A16),A1:B16,2) This is like MODE because it is the most frequent. For example: 1 bird 8 dog 4 cat 2 mouse 4 cat 4 cat 8 dog 8 dog 1 rate 8 dog 2 mouse 8 dog 8 dog 8 dog 8 dog 4 cat and the formula returns: dog -- Gary''s Student - gsnu200757 "Will" wrote: I need to find the most common entry in a column where the values are text. MODE only works on numeric values. |
MODE function for text entries
Assuming that A2:A100 contains the data, try the following formula that
needs to be confirmed with CONTROL+SHIFT+ENTER... =INDEX(A2:A100,MODE(IF(A2:A100<"",MATCH(A2:A100,A 2:A100,0)))) Hope this helps! In article , Will wrote: I need to find the most common entry in a column where the values are text. MODE only works on numeric values. |
All times are GMT +1. The time now is 11:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com