+ Reply to Thread
Results 1 to 6 of 6

Complex data analysis, finding values from one main source

  1. #1
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Complex data analysis, finding values from one main source

    Hi,
    In column A:

    Is a list of all Barcodes with not correct format and correct format.

    In column E:

    List of Barcodes in correct format

    The problem:

    The correct format is in Column E: with 0 in the front and a check digit end of the number. This column is the main source where Barcodes are assigned from.

    Our system somehow screwed up and automatically assigned Barcodes that either has or hasn't got a zero in the front or... has or hasn't got a check digit at the end of a Barcode. All data from database extracted to column A

    I need to point out or highlight, or any other way to identify all the Barcodes from Column A that match Column E.

    In the sample workbook, all Barcodes from Column A match the one in E.
    This is because, if you look at column E:

    Shows this value here;
    05013351100041

    The ones highlighted in BOLD is what matters and match to column A.

    So A1 A2 A3 A4 A5 are all true values.

    If that makes no sense, please let me know and ill try my best to explain.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: Complex data analysis, finding values from one main source

    Im thinking maybe a custom sort that searches the middle number for all barcodes in Column A? Is that possible?

    I have over 5,000 Barcodes in column A

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,507

    Re: Complex data analysis, finding values from one main source

    you could use something like this to find out if what is in E matches what is in A...
    =IF(IFERROR(VLOOKUP(E2,$A$2:$A$5,1,FALSE),"")="","","match")
    if it doesn't match A it will return blank and match if it is.
    now if you want to fine out if A is in E then reverse the direction to this...
    =IF(IFERROR(VLOOKUP(A2,$E$2:$E$5,1,FALSE),"")="","","match")

    oh, and by the way, extend the reference cells as needed.
    and lastly, you can change the third blank to this if you want it to say doesn't match
    =IF(IFERROR(VLOOKUP(E2,$A$2:$A$5,1,FALSE),"")="","doesn't match","match")
    and reverse and extend as needed.
    Last edited by Sam Capricci; 01-25-2019 at 10:01 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Complex data analysis, finding values from one main source

    It is not clear if other values can appear that wouldn't count.
    =COUNTIF($E$2:$E$17,"*"&A2&"*") would work for the example you have given but 050133511000411 would also result in a positive value. this may be a problem it may not!

    or
    =COUNTIF($E$2:$E$17,"?"&A2&"?")+COUNTIF($E$2:$E$17,"?"&A2)+COUNTIF($E$2:$E$17,A2&"?")+COUNTIF($E$2:$E$17,A2)

  5. #5
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: Complex data analysis, finding values from one main source

    Quote Originally Posted by davsth View Post
    It is not clear if other values can appear that wouldn't count.
    =COUNTIF($E$2:$E$17,"*"&A2&"*") would work for the example you have given but 050133511000411 would also result in a positive value. this may be a problem it may not!

    or
    =COUNTIF($E$2:$E$17,"?"&A2&"?")+COUNTIF($E$2:$E$17,"?"&A2)+COUNTIF($E$2:$E$17,A2&"?")+COUNTIF($E$2:$E$17,A2)
    Hi, this one is perfect! how can it highlight the cell in column A its there?
    Last edited by Eduards; 01-25-2019 at 10:11 AM.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Complex data analysis, finding values from one main source

    apply it as a conditional format to the cells in column a Use a formula to determine what cells to format 1 is equivalent to true and choose a colour for the cells when this condition is met
    Attached Files Attached Files
    Last edited by davsth; 01-25-2019 at 10:30 AM.

+ 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: 12
    Last Post: 11-20-2017, 04:45 PM
  2. Complex Data Analysis Project
    By CapstanJD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2014, 10:18 AM
  3. Create multiple lists based on main data source
    By GhostCookie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2012, 11:14 AM
  4. [SOLVED] finding source data
    By piperhammy in forum Excel General
    Replies: 3
    Last Post: 12-13-2012, 05:29 PM
  5. creating multiple sheet reports from main data source
    By Kolacube in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2011, 10:22 AM
  6. Complex Automated Data Analysis
    By JohnGault82 in forum Excel General
    Replies: 1
    Last Post: 02-07-2011, 10:32 AM
  7. Replies: 1
    Last Post: 01-04-2005, 10:06 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