Find second most common value - MODE

martinblake02

New Member
Joined
Jan 13, 2016
Messages
23
Hello,

I have worked out how to find the most common value and ignore blank cells.
I have used the below formula in an array:

=IFERROR(INDEX(January!$E$8:$E$1500,MODE(IF(January!$E$8:$E$1500<>"",MATCH(January!$E$8:$E$1500,January!$E$8:$E$1500,0)))),"")

now I wish to find the second most common value.

is there an easy way to do this?

Really appreciate any help

Thanks
Martin
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Let's assume that A2 contains your formula, the one returning the first most common text value. In B2, enter the following formula and confirm with CONTROL+SHIFT+ENTER...

Code:
=IFERROR(INDEX(January!$E$8:$E$1500,MODE(IF(January!$E$8:$E$1500<>"",IF(January!$E$8:$E$1500<>A2,MATCH(January!$E$8:$E$1500,January!$E$8:$E$1500,0))))),"")

Hope this helps!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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