+ Reply to Thread
Results 1 to 4 of 4

If cell has specific text, check to see if two other cells match

  1. #1
    Registered User
    Join Date
    09-29-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    If cell has specific text, check to see if two other cells match

    I'm working on a staff leave sheet. If 'AL' or 'SL' appears in a cell, I want the formula to check the staff initials on the same row in column A against staff initials in the same column as the AL or SL leave comment. The answer should return how many matches there are.

    Probably explained better in the attached example. Note, if adding multiple options such as 'AL' and 'SL' makes it complicated then another option could be if the cell contains any data.

    Thanks for your help in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If cell has specific text, check to see if two other cells match

    Try this...

    =SUMPRODUCT(--(B3:B7="AL"),--ISNUMBER(MATCH(A3:A7,B9:B11,0)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-29-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: If cell has specific text, check to see if two other cells match

    Thank you. This worked exactly as I wanted it to.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If cell has specific text, check to see if two other cells match

    You're welcome. Thanks for the feedback!

+ 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] Check if 2 cells contain the same specific text
    By Verifyor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2014, 06:28 AM
  2. Replies: 3
    Last Post: 09-20-2013, 04:24 PM
  3. [SOLVED] Cells values to be check and replace with specific text
    By amolryeolekar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2013, 02:44 AM
  4. Check if cell contains specific text
    By L.LEE in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 12-23-2012, 07:08 PM
  5. [SOLVED] Counting Cells that includes exact match and also if a cell includes specific text
    By smclachlan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2012, 07:42 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