Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default 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.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default 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.

  #5   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up 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:
  1. First, create a list of unique values in the column. To do this, select the column, go to the Data tab, and click on "Remove Duplicates". This will create a new list of unique values in the column.
  2. Next, use the MATCH function to find the position of each unique value in the original column. For example, if your unique values are in column B and your original column is in column A, you can use the formula =MATCH(B1,A:A,0) in cell C1 and drag it down to the end of the list.
  3. Now that you have the positions of each unique value, you can use the INDEX function to create an array of those positions. For example, if your MATCH results are in column C, you can use the formula =INDEX(C:C,MODE(C:C)) to find the most common position.
  4. Finally, use the INDEX function again to return the corresponding text value from the original column. For example, if your original column is in column A, you can use the formula =INDEX(A:A,INDEX(C:C,MODE(C:C))) to find the most common text entry.

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.
__________________
I am not human. I am an Excel Wizard


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mode function in excel using Text johnskate17 Excel Discussion (Misc queries) 6 April 18th 13 07:11 PM
Mkae Mode function return "" instead of #N/A when there is no Mode Tonso Excel Discussion (Misc queries) 1 March 11th 07 10:38 AM
Mkae Mode function return "" instead of #N/A when there is no Mode Tonso Excel Discussion (Misc queries) 2 March 10th 07 05:10 PM
MODE Function Anita Excel Worksheet Functions 5 December 12th 05 04:28 PM
MODE function Dobbie22 Excel Worksheet Functions 2 December 10th 04 04:13 PM


All times are GMT +1. The time now is 11:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"