+ Reply to Thread
Results 1 to 7 of 7

how to calculate the mode

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    how to calculate the mode

    Hi, does anyone know how to code a function that will calculate the mode of 6 numbers?? thank you!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: how to calculate the mode

    Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Amend range reference as necessary.

    In vba you can simply use worksheetfunction.mode.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: how to calculate the mode

    thank you, how would you set "worksheetfunction.mode" to a particular range??

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: how to calculate the mode

    For example:

    Please Login or Register  to view this content.
    How are you wanting to use it?

  5. #5
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: how to calculate the mode

    to calculate the mode of 6 cells in vba

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: how to calculate the mode

    Quote Originally Posted by jakeembx View Post
    to calculate the mode of 6 cells in vba
    Okay. Hope this helps, then. Hard to be more specific....

  7. #7
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: how to calculate the mode

    thanks for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to calculate the mode
    By jakeembx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2013, 08:07 AM
  2. Replies: 7
    Last Post: 01-06-2011, 02:57 PM
  3. Replies: 2
    Last Post: 08-23-2007, 03:07 AM
  4. How do I calculate the mode of a column of IP addresses?
    By Brandon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2006, 03:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1