Results 1 to 9 of 9

Matching 8th Digit of Vin to Table

Threaded View

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    Twin Falls, Idaho
    MS-Off Ver
    2016
    Posts
    4

    Matching 8th Digit of Vin to Table

    I finally figured this one out on my own thanks to maras_mak for helping me with my previous spreadsheet and informing me about Index and Match functions.

    However I'd like to know if this was the most efficient way to do it, or if there is a simpler method.

    I have a table that lists vehicles, their vehicle identification numbers (VIN), their engine, and a couple other criteria related to the engine so I don't have to remember it. The criteria was easy enough to generate with a few nested IF functions, but I had to lookup and manually enter every engine code. Since I'm only working with a single manufacturer, I figured I could set up a table and automate it.

    The formula I came up with pulls the 8th digit from a vin, and looks up the matching character in a table that lists the characters and engine codes. The issue I ran into was that it wasn't playing nicely with just the MATCH and MID function because there was both text and numbers. I eventually came up with this solution that uses an IF statement, ISNUMBER, and VALUE, and now the numbers play nicely.


    Formula: copy to clipboard
    =
    INDEX(
    Table4,
    MATCH(
    IF(
    ISNUMBER(VALUE(MID(Table1[Vin],8,1))),
    (VALUE(MID(Table1[Vin],8,1))),
    MID(Table1[Vin],8,1)),
    Table4[8th Digit of Vin],0),
    2)


    Is this the best solution or is there a better way? Sample sheet is attached. Formula is in C2.
    Attached Files Attached Files
    Last edited by Takanix; 10-26-2019 at 08:24 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. Replies: 1
    Last Post: 04-18-2019, 01:35 AM
  3. Replies: 6
    Last Post: 02-03-2019, 06:05 AM
  4. Bank Recon - How to convert 8 digit formatted check numbers to 6 digit
    By Quisp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-21-2017, 09:55 PM
  5. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  6. Take first digit from code and match to table
    By unclejemima in forum Excel General
    Replies: 1
    Last Post: 05-06-2013, 06:48 PM
  7. Replies: 2
    Last Post: 06-17-2010, 08:36 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