Link to home
Start Free TrialLog in
Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

multiple mode values in excel

Suppose I have these 3 series of numbers.
1546221
121323
323121

Which number would the Excel choose as the mode and why?
How can I replicate this methodology in Asp.net 3.5 with VB 2008?
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

If you use MODE (or MODE.SNGL in Excel 2010) worksheet function it wouldn't choose any of those - MODE gives you #N/A if there are no duplicate numbers. If 2 or more numbers have the same number of instances it just picks the first instance in the range so if you have

123
345
123
345

Excel picks 123

regards, barry
Avatar of AlHal2

ASKER

Sorry I didn't make clear.  In each row the numbers are separate.

1,5,4,6,2,2,1 Excel mode is 1
1,2,1,3,2,3   Excel Mode is 1
3,2,3,1,2,1   Excel Mode is 3
ASKER CERTIFIED SOLUTION
Avatar of ExcelGuide
ExcelGuide
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlHal2

ASKER

What about the second part of my question?  Suppose I have one of the above series in a 1D array.  How do I get the same mode as Excel using vb 2008 in asp.net 3.5?
Avatar of AlHal2

ASKER

I've requested that this question be closed as follows:

Accepted answer: 0 points for AlHal2's comment #a38398416

for the following reason:

Partially answered.
Avatar of AlHal2

ASKER

Partially answered