+ Reply to Thread
Results 1 to 3 of 3

Duplicate License Plate Formula

  1. #1
    Registered User
    Join Date
    03-11-2015
    Location
    Pittsburgh,PA
    MS-Off Ver
    7
    Posts
    2

    Duplicate License Plate Formula

    I'm trying to find a way to use a formula or macro that would sort through a column of approximately 10,000 license plate # (alpha and numeric) starting in cell A2 through A10001 and return any License Plate # that appeared 5 or more times by listing the License Plate # in say Column D and the number of times it appeared in Column E.

    Any help would be greatly appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Duplicate License Plate Formula

    Hi, welcome to the forum

    It's easier to offer help if you provide a sample workbook, but assuming your data looks something like column A below...
    A
    B
    C
    D
    2
    aa123 aa123 aa123
    5
    3
    aa124 aa124 aa124
    5
    4
    aa125 aa125 aa125
    5
    5
    ba126
    6
    aa123 aa123
    7
    aa124 aa124
    8
    aa125 aa125
    9
    ca126
    10
    aa123 aa123
    11
    aa124 aa124
    12
    aa125 aa125
    13
    ca126
    14
    aa123 aa123
    15
    aa124 aa124
    16
    aa125 aa125
    17
    ea126
    18
    aa123 aa123
    19
    aa124 aa124
    20
    aa125 aa125
    21
    aa126

    B is a helper column with this, copied down...
    =IF(COUNTIF($A$2:$A$21,A2)>4,A2,"")
    You can hide this if needed

    For pulling in the data
    C2=IFERROR(INDEX($B$2:$B$21,MATCH(0,INDEX(COUNTIF($C$1:C1,$B$2:$B$21),0,0),0)),"")
    D2=IF(C2="","",COUNTIF($A$2:$A$21,C2))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-11-2015
    Location
    Pittsburgh,PA
    MS-Off Ver
    7
    Posts
    2

    Re: Duplicate License Plate Formula

    Thanks for the tip Ford...haven't been on here in some time and sent the post on the fly! We'll give it a shot...and thanks very much for the reply.

+ 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. matching number plate macros
    By Dcumby in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 08:24 AM
  2. Sorting License Plate Data
    By bhasky in forum Excel General
    Replies: 2
    Last Post: 12-28-2010, 01:41 PM
  3. Enter number plate and add 1
    By badenairpark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2008, 08:45 AM
  4. Color Plate
    By ali786 in forum Excel General
    Replies: 2
    Last Post: 06-05-2008, 04:31 AM
  5. [SOLVED] Working out the age of a vehicle from UK Registration plate
    By zigs71 in forum Excel General
    Replies: 0
    Last Post: 02-07-2006, 10:45 AM

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