+ Reply to Thread
Results 1 to 2 of 2

Find if part of a cell is correct

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Find if part of a cell is correct

    I had made this a while ago but can't figure out how to do it now.....

    If a text in a cell is composed of multiple parts (i.e. bar code), how do I condition the cell to highlight the incorrect code, if the character combination does not exist for that segment.

    So if I have;

    Segment 1: A, B, C
    Segment 2: D, E, F
    Segment 3: GHI, JKL
    Segment 4: MNO, PQR
    Segment 5: STU, VWX
    Segment 6: YZ1

    Correct Code Combination: ADGHIMNOYZ1
    Incorrect Code Combination: ADMNOGHIYZ1

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,430

    Re: Find if part of a cell is correct

    Not sure I have interpreted correctly. I "forced" a combination I thought would be correct in row 6. Array enter in D1 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Row\Col
    A
    B
    C
    D
    E
    1
    A B C Incorrect =IF(COUNT(FIND(IF(A1:C1<>"",A1:C1),"ADGHIMNOYZ1"))=SUM(COUNTIF(A1:C1,"<>")),"Correct","Incorrect")
    2
    D E F Incorrect
    3
    GHI JKL Incorrect
    4
    MNO PQR Incorrect
    5
    STU VWX Incorrect
    6
    YZ1 ADG Correct
    Dave

+ 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. VBA Help! Macro to find correct workbook from table name in cell
    By Naomicj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2015, 04:37 PM
  2. correct function to find a correct time value
    By jekidi in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-06-2013, 03:17 PM
  3. Correct Date syntax for cell and textbox find
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-09-2012, 12:54 AM
  4. [SOLVED] Correct syntax to have the find funtion search for whatever is in cell B2
    By geshorse in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-06-2012, 06:58 PM
  5. Find Part number through Macro and output to associated part to certain cell
    By boylers75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 04:32 PM
  6. [SOLVED] Find part of a word in cell
    By Elaine in forum Excel General
    Replies: 7
    Last Post: 03-03-2006, 03:40 PM
  7. [SOLVED] Find and copy part of a cell
    By Srwe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2005, 07:50 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