Most probable digit return ?

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,454
Office Version
  1. 2007
Platform
  1. Windows
Hi,
I wanted to know if it would be possible to create a formula or code that would return in cell M3 the most probable digit 1,2,3, which start in column M6:M317 ? Thank you.

111111132333123123113231332113311321212221232113113232332221221313323213123332222231311322323133123122132111123113112122123222331323311312131231222232131223211323333132132321313311332111131111322231132212313232231133123311323123132232223133232123221232213332331123131123222332331111313331311232213221332222332313
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Have you tried Mode.Sngl?

Excel Formula:
=MODE.SNGL(M6:M317)
 
Upvote 0
Thank you LogChief for your quick response, I copy/paste your formula but it returned " #NAME? " is that because I'm still in 2007 ?
 
Upvote 0
Thank you LogChief for your quick response, I copy/paste your formula but it returned " #NAME? " is that because I'm still in 2007 ?
Thank you LogChief for your quick response, I copy/paste your formula but it returned " #NAME? " is that because I'm still in 2007 ?
Just use the older function MODE:
Excel Formula:
=MODE.SNGL(M6:M317)
 
Upvote 0
I don't understand it's the same as post 2 ??
 
Upvote 0
I don't understand it's the same as post 2 ??
Sorry, something happened to the post. Use the older function, MODE:
Excel Formula:
=MODE(range)
That will give return the number that occurs the most times, i.e., the most probable.
 
Upvote 0
Thanks, I'm not looking for the digits that occur the most times, but the digit that would be the most probable to return according to the orders of that list.
 
Upvote 0
Thanks, I'm not looking for the digits that occur the most times, but the digit that would be the most probable to return according to the orders of that list.

Hello, could you please expain in more detail what is it that you are looking for? If it is which of the numbers within the given data has the highest chance to be randomly picked, then based on a large number of iterations @LogChief's answer is correct.
 
Upvote 0
I am not sure about the compatibility but maybe you could test it by using:

Excel Formula:
=INDEX($M$6:$M$317,RANDBETWEEN(1,ROWS($M$6:$M$317)),1)

Drag this formula down to cover e.g. 10,000 cells and then count how many times each digit was picked.
 
Upvote 0
Thank you hagia_sofia, when I use your formula and I pasted it in my next column, the data in the previous columns change Why ? for my understanding I need the return to be solid and not change I guess it would take a long analyzed study of the digits tread, maybe that can not be done, Oh well Thank you for trying I really appreciate you guys help.
Here below is the beginning portion of my table.

Screenshot 2024-12-28 134722.png
 
Upvote 0

Forum statistics

Threads
1,225,130
Messages
6,183,029
Members
453,146
Latest member
scarabeovini

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