+ Reply to Thread
Results 1 to 2 of 2

Formula or Code to grab the next highest number

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    61

    Formula or Code to grab the next highest number

    Excel Gods,

    I am in dire need of assistance.

    I have this particular spreadsheet with 9 columns: Policy#, Iss St, G Issue, Iss Year, Prem Collected, Claims Paid, Infct, Agent Level, and Agent number.

    Thing problem with this spreadsheet is that In column A, Policy #, there are duplicates. When there are duplicates it is because there was more than one agent who helps the policy.

    ***What I want is to get rid of all the duplicates, and... get the highest agent level after one.
    For example: Policy Number 3082695 has three rows with corresponding agent level # 1,3, and 7. I only want the row that has the three because it is the next highest level after 1.

    If a policy doesn't have a duplicate than, I want that policy regardless.
    4Q2013DiamondPartnerforExcel10302015.xlsx

    Maybe a loop? Im not sure

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Formula or Code to grab the next highest number

    This is a little slow, it takes about 5 seconds on my computer but it's the best I can do.
    You have more than one policy with duplicate agents with the 1 and no other agent number higher.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by skywriter; 10-30-2015 at 05:17 PM.

+ 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: 4
    Last Post: 01-21-2015, 02:07 PM
  2. VBA code to find highest and 2nd highest number based in criteria
    By Michael007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 08:38 AM
  3. Formula to grab size from part number.
    By fulford in forum Excel General
    Replies: 13
    Last Post: 08-25-2011, 04:47 PM
  4. Formula for value in a column that appears in the highest row number
    By Matt Chis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2011, 11:33 PM
  5. Grab highest abs. value from a changing field?
    By toorik in forum Excel General
    Replies: 5
    Last Post: 12-16-2010, 03:27 AM
  6. highest number formula
    By maestro_uk in forum Excel General
    Replies: 4
    Last Post: 08-28-2007, 10:36 AM
  7. Replies: 3
    Last Post: 08-10-2006, 11:40 PM

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