Solved

Median, Mode, and smallest value in a listbox

Posted on 2006-11-03
1
341 Views
Last Modified: 2010-04-23
I am trying to calculate the median, and mode using a listbox that contains salary values. The are referenced to seperate Subs on the form. One calculates the mean of the listbox (lstsalaries) and the second calculates the mode(of lstSalaries) and the last one calculates the smallest salary in the list. I know that a sorted list will help but, I have absolutely no idea what the syntax of the code will be. I am new to VB and help would be greatly appreciated.
Thank you,
Volunteer2
0
Comment
Question by:volunteer2
1 Comment
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 500 total points
ID: 17872055
I Googled "VB Mean Median Mode" and found in the second slot: http://abstractvb.com/code.asp?A=1031
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question