+ Reply to Thread
Results 1 to 6 of 6

Finding most Repetitive Name in a range

Hybrid View

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    40

    Finding most Repetitive Name in a range

    Hi All,

    I need help to resolve this scenario. I have attached a screen shot of my table with the range name

    table.jpg

    'qtr' is the name of 1st colum range
    'con' is the name of 2nd column range
    'pc' is the name of 3rd column range

    What I need to have is, I need find the most repetitive text in the 3rd range with few conditions.
    The conditions are,
    The quarter should be "Q2"
    Country is "India"

    Here is the formula which I used to find the most repetitive word in a range:

    =INDEX(pc,MODE(MATCH(pc,pc,0)))

    But this does not have any condition applied.

    I need to know how to ignore the cells in the range "pc" if the country is NOT "India" and quarter is NOT Q1 or Q3 or Q4.

    Any help would be great.


    Thank you in advance.


    Vijay N
    Last edited by vij8y; 08-16-2012 at 08:20 PM.

  2. #2
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Finding most Repetitive Name in a range

    Hi,

    Try
    Formula: copy to clipboard
     =IF(AND(qtr="Q2", con="India"),INDEX(pc,MODE(MATCH(pc,pc,0))), "")  

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Finding most Repetitive Name in a range

    Try this array formula

    Formula: copy to clipboard
    =INDEX(pc,MODE(MATCH(IF((qtr="Q2")*(con="India"),pc,ROW(pc)),IF((qtr="Q2")*(con="India"),pc,ROW(pc)),0)))

  4. #4
    Registered User
    Join Date
    08-15-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Finding most Repetitive Name in a range

    This worked like a charm! Thank you very much Bob!

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Finding most Repetitive Name in a range

    An alternative array formula

    Formula: copy to clipboard
    =INDEX(pc,MATCH(MAX(COUNTIFS(qtr,"Q2",con,"India",pc,pc)),COUNTIFS(qtr,"Q2",con,"India",pc,pc),0))

  6. #6
    Registered User
    Join Date
    08-15-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Finding most Repetitive Name in a range

    I never such a fast response from you guys.
    I sincerely appreciate everyone who replied for this thread and let me try all your suggestions and let you guys know asap.

    To jason.b75: Sorry about the duplicate dude. This is my first experience here and appreciate your comment.

    Thank you guys.
    Vijay N
    Last edited by vij8y; 08-15-2012 at 12:12 PM.

+ 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