+ Reply to Thread
Results 1 to 5 of 5

If, And, wildcard search

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    St. George
    MS-Off Ver
    Excel 2007
    Posts
    12

    If, And, wildcard search

    Alright guys, I'm sure someone will have the answer to this question as someone always does!! I am trying to find conflicting parts and codes with the parts. For example, A1 says ACCELEROMETER, and A2 says ACCELEROMETER, ENGINE. They are both the code 8803.30.0030 (Column C).

    I want my search to tell me whether the previous line item has both the same beginning text and code or not. Here's the formula I've come up with so far...

    =IF(AND(LEFT(B2,5))=(LEFT(B3,5)),I know somewhere in here, the code (Column C) needs to be entered"SAME","CONFLICT")

    I thought this would be a nested if, and verify whether or not the first five letters of text match, as well as the codes. I'm wrong somehow but not sure how....please help??
    Last edited by zachvu; 07-14-2011 at 06:23 PM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: If, And, wildcard search HELP NEEDED!!

    Hi,

    You don't need the AND().

    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    06-11-2010
    Location
    St. George
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: If, And, wildcard search HELP NEEDED!!

    Quote Originally Posted by Colin Legg View Post
    Hi,

    You don't need the AND().

    Please Login or Register  to view this content.
    I was under the impression I needed the AND to do the nested if for the code column? I realize I didn't have any continuation of the formula in there, but that's where I need the help most! This is what I currently have:

    =IF((LEFT(B2,5))=(LEFT(B3,5)),"SAME","CONFLICT")

    and it is telling me if the previous entry is matching only in name. I need to add to the function, in order to find out if the code (Column C) matches as well.

  4. #4
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: If, And, wildcard search HELP NEEDED!!

    Ah, I understand. So, to check that the codes are exactly the same too, you would use this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-11-2010
    Location
    St. George
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: If, And, wildcard search HELP NEEDED!!

    Perfect Thank you Colin!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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