+ Reply to Thread
Results 1 to 16 of 16

Help me develop function to find the number having repeated time is max...

  1. #1
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Help me develop function to find the number having repeated time is max...

    I want to find the number having repeated time is max in the range which is limited by min and max number. So I try to develop a function but it can not run.
    Help me pls,
    Thank you so much
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by tamthat; 06-27-2018 at 01:35 AM.

  2. #2
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Help me develop function to find the number having repeated time is max...

    anybody here?
    help me pls. @@

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Help me develop function to find the number having repeated time is max...

    If you just want 4(appears 17 that is max) as a result

    =MODE(A2:E21)

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Help me develop function to find the number having repeated time is max...

    You don't need a macro use conditional formatting
    Attached Files Attached Files
    Last edited by Keebellah; 06-27-2018 at 04:40 AM.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Help me develop function to find the number having repeated time is max...

    And then all without macros and conditional formatting
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Help me develop function to find the number having repeated time is max...

    Thanks for help
    I want to develop a function the same:
    Please Login or Register  to view this content.
    and the result of the function will return the number having repeated time is max in new range which is limited by from a to b with a < b and a & b in Rng.
    For example Rng in function from 1 to 10, and we have 100 elements in Rng, so I want to find the number having repeated time is max from 2 to 5 in Rng. And the function will be FINDX(2,5,Rng).
    Thank you so much.
    Last edited by tamthat; 06-27-2018 at 05:46 AM.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Help me develop function to find the number having repeated time is max...

    Then
    =MODE(IF((A2:E21>=2)*(A2:E21<=5),A2:E21))
    Confirm with Ctrl+Shift+Enter (Array Formula Entry)

  8. #8
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Help me develop function to find the number having repeated time is max...

    Quote Originally Posted by jindon View Post
    Then
    =MODE(IF((A2:E21>=2)*(A2:E21<=5),A2:E21))
    Confirm with Ctrl+Shift+Enter (Array Formula Entry)
    Thank you so much

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Help me develop function to find the number having repeated time is max...

    If you want it as an UDF, this will return multiple value when Mode is multiple.

    =ModeBetween(2,5,A2:E21)

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Help me develop function to find the number having repeated time is max...

    jindon, thank you so so much.
    But I want to return THE NUMBER having x above your function. Thank you again
    Last edited by tamthat; 06-27-2018 at 11:11 AM.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Help me develop function to find the number having repeated time is max...

    You are welcome and thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  12. #12
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Help me develop function to find the number having repeated time is max...

    Yes, thank you, but I have just check again, can you help me more about your function? I want to return THE NUMBER refer x in your function (THE NUMBER is element of rng, not return MAX value).
    In =ModeBetween(2,5,A2:E21), I want to return 4, not 17. Thank you so much
    Last edited by tamthat; 06-27-2018 at 11:11 AM.

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Help me develop function to find the number having repeated time is max...

    1)
    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

    2) Right, change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Help me develop function to find the number having repeated time is max...

    jindon, that's great. Thank you again.
    Last edited by tamthat; 06-27-2018 at 11:10 AM.

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Help me develop function to find the number having repeated time is max...

    tamthat

    The forum doesn't like the full quote of the post.
    So, edit your posts and remove them.

  16. #16
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Help me develop function to find the number having repeated time is max...

    yes, of course. thanks

+ 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. Replies: 1
    Last Post: 10-11-2014, 04:52 AM
  2. To find repeated trailer number ? Help
    By Jeeves50 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-12-2013, 08:25 PM
  3. Develop a VBA code to get the output - find the mean of every 50 lines of row data.
    By cadcraft in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-29-2013, 10:29 AM
  4. How to Develop a Break Time Calculator with Buttons
    By vrindamithul in forum Excel General
    Replies: 0
    Last Post: 02-10-2013, 07:32 AM
  5. [SOLVED] Function required to develop algorithm
    By Karnik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2013, 04:58 PM
  6. poiting a certain number to identify how many time it is repeated
    By spolonova in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-02-2011, 03:19 AM
  7. find out number repeated max. times in column.
    By vimivijay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2005, 06:59 AM

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