+ Reply to Thread
Results 1 to 1 of 1

Find top values in range, if top value already exists in specific row, enter second value

  1. #1
    Forum Contributor
    Join Date
    01-30-2014
    Location
    England
    MS-Off Ver
    MS Office 2010, 2007, 2003
    Posts
    149

    Find top values in range, if top value already exists in specific row, enter second value

    Hi all

    I need to get the top value from a list of 12 possible responses, check the value does not already exist in a specific row, if it does, then enter the second top value (or third, fourth etc. until it is a unique value in the row), else enter it as a value.

    E.G:
    Value 1 Value 2
    Value 1 Value 2
    Value 1 Value 1
    Value 2 Value 1
    Value 3 Value 3
    Value 1 Value 1

    Value 1 Value 2

    Because Value 1 in the first column is taken, Value 2 is substituted as it is the second most common value.
    I've attached a desensitised example which will hopefully explain a bit more what I'm trying to achieve.

    I'm currently using a formula to get the top value (index mode match), manually going through the answers and omitting duplicate values for the second or third highest

    Any help with this is greatly appreciated, and if you need any further information, please let me know

    Thanks

    EDIT: Updated the attachment as I realised columns 1 and 6 we're identical.

    EDIT 2: I've managed to make some code to get this to work - I have 12 instances of this code in total, running one after the other but for future reference here is one example of it:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Aaron092; 02-17-2016 at 12:46 PM. Reason: Updated attachment

+ 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. Find value and if exists copy specific range
    By C4MARO in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-08-2015, 10:20 AM
  2. Find value and if exists copy specific range
    By C4MARO in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2015, 08:34 AM
  3. [SOLVED] Using range.find to find two specific values in two columns
    By mhrub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2012, 01:02 PM
  4. if exists find last values in variable rows
    By ABBOV in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-03-2010, 11:03 AM
  5. Replies: 2
    Last Post: 07-12-2009, 05:14 PM
  6. find values exists in sheet
    By krishnarao in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2007, 02:10 PM
  7. Need to find specific values in range using loop
    By frk1980 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-10-2005, 10:52 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