+ Reply to Thread
Results 1 to 5 of 5

Mode

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Mode

    So I am using MODE.MULT which is working great! So this is what it does if there is no data in the data array: (If the data set contains no duplicate data points, MODE.MULT returns the #N/A error value.) that is what it’s supposed to do, but what I am looking for is to do that when there are more than one duplicate data point. Ex if the data array shows 1, 1, 2 that would then = 1 and if the data array shows 1,1,2,2 that would then = 1, but I want it to = N/A or it can be blank , so maybe using a logical formula would help but I can’t figure it out... Please Help.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Mode

    I am not sure of the MODE.MULT function but if you mean the MODE function or if it similar to the MODE function, you can use a helper formula first...

    assuming data is in A1:A6, then in B1 enter:

    =IF(COUNTIF($A$1:$A1,$A1)=1,COUNTIF($A$1:$A$6,$A1),"")

    copied down.

    then use:

    =IF(COUNTIF($B$1:$B$6,MAX($B$1:$B$6))>1,"",MODE($A$1:$A$6))

    for the final result
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-16-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Mode

    It doesn’t seem to work, I even attempted in a new workbook, but the formula still calculates the first duplicate point in the data array first. I do think we are close to figuring it out. The data array shows 1,1,2,2 that would then = 1, but I want it to = N/A or it can be blank If there are more than one duplicate data point in the data array.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Mode

    Mode.Mult works as an array. You'll need to have multiple cells (vertical cells) selected and then enter with CNTRL SHFT ENTER.
    So if your data in A1:A10 and your mode is tied with 3 each of 1 and 2...
    If you select C1:C4 and =MODE.MULT($A$1:$A$10) and enter with CNTRL SHFT ENTER, you'll see 1,2,#NA, #NA

    BUT, that's not what you want (I think)......
    So if you don't want an value if there is more than one # tied for mode, try

    =IF(COUNT(MODE.MULT($A$1:$A$10))>1,"",MODE($A$1:$A$10))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    05-16-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Mode

    THAT WORKED!!!! I have been breaking my head for a while trying to figure it out. Thanks you both!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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