Finding mode of 3-digit integer in multi-digit array

sdchris

New Member
Joined
Oct 28, 2011
Messages
29
I'm trying to write a formula that will calculate the mode (most frequently used #) in a data set for all 3-digit numbers. There are also 1- 2- and 4-digit numbers in the set. Here's an example below:

101
1235
100
759
101
2
1235
5
1235

In this case, the mode for 3-digit numbers would be 101, since it is the only 3-digit number that occurs more than once.

Any advice would be great. Thanks.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I'm trying to write a formula that will calculate the mode (most frequently used #) in a data set for all 3-digit numbers. There are also 1- 2- and 4-digit numbers in the set. Here's an example below:

101
1235
100
759
101
2
1235
5
1235

In this case, the mode for 3-digit numbers would be 101, since it is the only 3-digit number that occurs more than once.

Any advice would be great. Thanks.
You can use this array-entered** formula (just adjust the two ranges to cover your numbers)...

=MODE(IF(LEN(A1:A9)=3,A1:A9))

**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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