How to Find Mode of Comma-Separated Numbers in Google Sheets

Working with comma-separated numbers inside a single cell is a common scenario in Google Sheets—whether you’re handling survey responses, multi-choice selections, or merged numeric values. But what if you want to find the mode, i.e., the most frequently occurring number within each cell’s list?

The standard MODE function won’t work directly with a comma-separated list because it expects individual numeric values as arguments or as a reference to a numeric range. So, to find the mode of comma-separated numbers in Google Sheets, the first step is to split the values into individual numbers.

That becomes tricky when each row contains its own comma-separated list, and you want to find the most frequent number per row. Since MODE doesn’t process text splits directly, you need a formula that can handle this row-by-row logic.

In this tutorial, I’ll show you how to use SPLIT with MODE (or MODE.MULT) and apply it across rows using MAP—a LAMBDA helper function that evaluates each row individually.

Find the Mode of Comma-Separated Numbers in Google Sheets

Drag-Down Formula

Assume you have the following comma-separated numbers in column B (range B2:B):

Mode of Comma-Separated Numbers in Google Sheets

Note: Before entering data, go to Format > Number > Plain Text to prevent Google Sheets from converting some of the values (like 20, 10) into dates.

To find the mode in each row, enter the following formula in cell C2 and drag it down:

=TOROW(IFNA(MODE.MULT(SPLIT(B2, ","))))

Explanation:

  • SPLIT(B2, ","): Splits the comma-separated string into individual numbers.
  • MODE.MULT(...): Returns all mode values (if multiple values tie).
  • IFNA(...): Removes any #N/A errors.
  • TOROW(...): Flattens the result into a row (especially useful with MODE.MULT).

Note: If you use the standard MODE (or MODE.SNGL), you can remove TOROW.

Array Formula to Find the Mode of Comma-Separated Numbers in Google Sheets

To apply the logic across multiple rows dynamically, use this array formula:

=MAP(B2:B, LAMBDA(val, IF(val="",,TOROW(IFNA(MODE.MULT(SPLIT(val, ",")))))))

Explanation:

  • MAP(B2:B, ...): Applies the formula to each cell in the range B2:B.
  • LAMBDA(val, ...): Custom function to process each row’s cell value.
  • IF(val="", , ...): Skips blank rows.
  • TOROW(IFNA(MODE.MULT(SPLIT(val, ",")))): Returns the mode(s) per row.

You can replace MODE.MULT with MODE or MODE.SNGL if you only want the first most frequent number per row. In that case, TOROW is optional.

Conclusion

With this approach, you can extract the mode of comma-separated numbers in Google Sheets dynamically, either row by row or as a drag-down formula. Whether you want a single mode or all tied modes, this method gives you full control using modern functions like MAP, LAMBDA, and MODE.MULT.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. With years of experience working with Google Sheets and Excel for multinational firms in Mumbai and Dubai, he has been blogging since 2012, offering practical, real-world spreadsheet solutions that professionals rely on. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Mode of Comma-Separated Numbers in Excel (Dynamic Array)

There is no dedicated function in Excel to directly find the mode of comma-separated...

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

More like this

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.