Results 1 to 8 of 8

Very Large Crime Database and I need to apply proper codes to it

Threaded View

pick44 Very Large Crime Database and... 03-23-2017, 07:14 PM
pick44 Re: Very Large Crime Database... 03-23-2017, 09:01 PM
FlameRetired Re: Very Large Crime Database... 03-23-2017, 10:04 PM
pick44 Re: Very Large Crime Database... 03-24-2017, 07:43 AM
FlameRetired Re: Very Large Crime Database... 03-24-2017, 05:55 PM
pick44 Re: Very Large Crime Database... 03-24-2017, 06:18 PM
Norie Re: Very Large Crime Database... 03-24-2017, 07:43 PM
pick44 Re: Very Large Crime Database... 03-24-2017, 09:18 PM
  1. #1
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    522

    Very Large Crime Database and I need to apply proper codes to it

    I have a data base with 20 columns and 30,000 rows of data. The key column is the one which has the Offense Code. The codes are both numbers and some with number and letter. And if there is a letter behind the number it could have one space or two space or three space...like this 02101 A, or 02777 Z or 30400 C. In these examples the first has three spaces and then 2 and then 1.

    I tried to use VLookup to give these codes the proper index code which is shown in the orange column heading with the proper Description. However, I am not able to successfully sort by lowest to highest because of the various letters behind the numbers and also the way the numbers are arranged.

    The columns highlighted in yellow shows the way the codes are being displayed after sorting from lowest to highest. The orange columns are the correct codes and descriptions but they are not in the same order as the ones in the yellow after sorting. The green columns represent the way I want the columns and rows to looks like after all is done. In some cases there will be "more' or "less" codes depending on the crime for that month. But all codes will be used during the year as each month crime report will have some or all codes.

    Any suggestion would be helpful. I have multiple years of data that I will have to work through. If I can find a formula that works, I can save myself weeks of work. Thank you as always.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to apply the codes for 2 columns in For each... in...
    By fluffyvampirekitten in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2015, 02:34 AM
  2. How Do I Apply the Same Formula to the Entire Workbook? I.E Trim & Proper
    By Inframan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2013, 08:16 PM
  3. [SOLVED] APPLY Header Codes
    By diakonos1984 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2013, 03:48 PM
  4. [SOLVED] Using VLookUp in VBA Form, Apply Values Only to Proper Cell
    By tsamuels in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-26-2013, 08:23 AM
  5. [SOLVED] Proper way to apply conditional formatting to new entries of data.
    By Melvinrobb in forum Excel General
    Replies: 6
    Last Post: 07-09-2012, 03:08 PM
  6. How to apply a proper date format to an entire column?
    By anb001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-03-2008, 03:47 PM
  7. Replies: 0
    Last Post: 04-28-2006, 01:00 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