Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Nou pe simpatie: Ank_beleaua
 | Femeie 25 ani Bucuresti cauta Barbat 35 - 51 ani |
|
|
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #2 |
|
|
If there are empty cells in the range, you use the following ARRAY formula: =INDEX(B5:F5;MODE(IF(B5:F5<>"";MATCH(B5:F5;B5:F5;0))))
If you want to use multiple rows / columns, you must use VBA code. See my post below.
_______________________________________

|
|
| |
|
| #3 |
|
|
If the above won't work, like they haven't worked for me in one case with multiple rows and columns, I used VBA:
Sub FindFrequency()
Dim Rng As Range Dim WorkRng As Range Set dic = CreateObject("scripting.dictionary") On Error Resume Next
xTitleId = "Select range to count the most frequent word" Set WorkRng = Application.Selection Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8) xMax = 0 xOutValue = ""
For Each Rng In WorkRng xValue = Rng.Value If xValue <> "" Then dic(xValue) = dic(xValue) + 1 xCount = dic(xValue) If xCount > xMax Then xMax = xCount xOutValue = xValue End If End If Next
MsgBox "The most common value is: " & xOutValue & ". It appeared " & xMax & " Times" End Sub |
Source: https://www.extendoffice.com/documents/ ... value.html
_______________________________________

|
|
| |
|