+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP correct or incorrect use

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2021
    Location
    Washington DC
    MS-Off Ver
    2013
    Posts
    4

    VLOOKUP correct or incorrect use

    Hello, I am not sure if VLOOK up is the correct function to use but this is my problem.

    I have a sheet with serial numbers of products solid of a given time span. The sheet is literally just 1100 rows of unique serial numbers. I have about 10 additional sheets of serial numbers from various product batches of production. I need a way to compare the list of products sold to each sheet of products created to see which ones have actually been sold based on the serial numbers. I have been able to use VLOOKUP by copy and pasting a single row at a time to filtering by data. I am looking to see if there is a way to compare an entire sheet at time to the serial numbers of products sold. All the serial number represent the same type of data, the data just fills multiple columns.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,022

    Re: VLOOKUP correct or incorrect use

    Hi and welcome

    I think it would be easier to understand the requirement if you could post a sample workbook that demonstrates your data layout and your desired result.

    BSB

  3. #3
    Registered User
    Join Date
    01-11-2021
    Location
    Washington DC
    MS-Off Ver
    2013
    Posts
    4

    Re: VLOOKUP correct or incorrect use

    I believe i have attached a sample of the work i am trying to accomplish.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,521

    Re: VLOOKUP correct or incorrect use

    I don't understand exactly what you are trying to do. Your OP also suggested that the list of serial numbers (represented in your sample in C1:I10?) were spread out over several sheets rather than being in one sheet.

    As a guess, I put =COUNTIFS($C$1:$I$10,A1) into K1 and copied into K1:K10. This COUNTIFS() function will count how many times the values in A1 appear in C1:I10. 0 for no matches, 1 if the value appears once, 2 if the serial number appears twice, and so on. Is that what you are looking to do -- simply identify which serial numbers in column A also exist in C1:I10?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    01-11-2021
    Location
    Washington DC
    MS-Off Ver
    2013
    Posts
    4

    Re: VLOOKUP correct or incorrect use

    I apologize for the change in data. I had to create a test sheet quickly as to not reveal any actual numbers. Yes, I am simply trying to identify which serial numbers in column A also exist in C1:I10. The COUNTIFS does work, one issue that I have discovered is that if a larger serial number has some digits of a smaller number that match it will produce a "hit." An example of this is if 123456 is a larger serial number and 456 is a shorter one, the function will show 2 matches when really it should just be one. With VLOOKUP i know that you can get an exact match and it can actually show you the cell address of the match. Is there a way to accomplish this feature, were it will show the cell address of the match?

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: VLOOKUP correct or incorrect use

    COUNTIF will not treat 123456 and 456 as the same number. It will, however, ignore any numbers after the 15th significant digit.
    Everyone who confuses correlation and causation ends up dead.

  7. #7
    Registered User
    Join Date
    01-11-2021
    Location
    Washington DC
    MS-Off Ver
    2013
    Posts
    4

    Re: VLOOKUP correct or incorrect use

    Thank you all for your help, this will move my work a lot faster!

+ 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. [SOLVED] Three correct Formula giving incorrect result when put together
    By Marvo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2019, 03:09 PM
  2. Incorrect spellings highlight and then correct them using vba
    By prince bhatia in forum Word Formatting & General
    Replies: 6
    Last Post: 11-10-2015, 08:30 AM
  3. Incorrect spellings highlight and then correct them using vba
    By prince bhatia in forum Word Formatting & General
    Replies: 1
    Last Post: 10-23-2015, 11:30 PM
  4. Correct/Incorrect if cell contains letter
    By alexringo in forum Excel General
    Replies: 6
    Last Post: 06-16-2009, 07:43 AM
  5. Correct in fx; incorrect in cell
    By marvintpa in forum Excel General
    Replies: 5
    Last Post: 03-27-2009, 08:06 AM
  6. Replies: 0
    Last Post: 09-23-2008, 02:03 PM
  7. A correct formula gives an incorrect figure
    By GarMcCas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2006, 06:55 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