+ Reply to Thread
Results 1 to 2 of 2

Identifying the MODE using two sets of data

Hybrid View

  1. #1
    Registered User
    Join Date
    04-16-2014
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Identifying the MODE using two sets of data

    Hello all,

    I'm new here but have already found a ton of helpful information. Thanks! I have a set of dimensions in two columns (width (column C) and depth (column D)); here's a sample:

    Data.png

    I wanted to find the min, max, and mode dimensions. FYI: My results are in two cells--one cell for width and one for depth, like the input data. This code worked well for finding the minimum depth associated with the minimum width: =INDEX(Input!D18:D217,MATCH(MIN(Input!C18:C217),Input!C18:C217,0))

    However, when I tried to replace "MIN" with "MODE", it returned the depth associated with the first instance of the modal width (IE 57 instead of 55).

    How do I find the mode in: a subset of column D that is based on the mode of C?

    If I want to return the second most-common dimension--the second-degree mode--how would I do that?

    Thanks!!!

    Adam
    Attached Images Attached Images
    Last edited by R.Baltimore; 04-17-2014 at 03:01 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,723

    Re: Identifying the MODE using two sets of data

    Your formula for minimum depth associated with minimum width only works co-incidentally, if it works. It will actually return the first value associated with the minimum width, as you say about the MODE version. Try this array formula for MIN

    =MIN(IF(Input!C18:C217=MIN(Input!C18:C217),Input!D18:D217))

    confirmed with CTRL+SHIFT+ENTER

    If you want the MODE of the depth values associated with the modal width then use the same but with MODE function in place of both MIN functions
    Audere est facere

+ 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. [SOLVED] Code skips on Run Mode but runs fine on F8 (Debug Mode)
    By RaquelAR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-25-2013, 01:05 PM
  2. [SOLVED] Excel 2010 Identifying data changed in cells and Identifying the changed rows
    By SandyLake in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2013, 01:12 AM
  3. Two sets of data for X-axis and 2 sets of data for Y
    By lord_jagganath in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-07-2009, 07:44 PM
  4. Can I use VBA to check if the sheet(xxx) is in Page-Break mode or Normal mode ?
    By BaLLZaCH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2008, 09:03 AM
  5. Replies: 0
    Last Post: 01-07-2005, 04:06 PM

Tags for this Thread

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