+ Reply to Thread
Results 1 to 5 of 5

Need to count if Column A contains definded text and Column B equals defined word

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    USofA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Need to count if Column A contains definded text and Column B equals defined word

    Good day,

    I need help with a formula that would count the instances in Column C, where Column A contains "LH" or "RH" as part of the word, and column B equals "Either".

  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: Need to count if Column A contains definded text and Column B equals defined word

    Maybe this...

    =SUM(COUNTIFS(A:A,"*"&{"LH","RH"}&"*",B:B,"Either"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-31-2013
    Location
    USofA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need to count if Column A contains definded text and Column B equals defined word

    Tony this is exactly what I was looking for. Thank you for your timely response.

  4. #4
    Registered User
    Join Date
    05-31-2013
    Location
    USofA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need to count if Column A contains definded text and Column B equals defined word

    The multiple criteria in column A is where I was getting caught up. Can the below be applied to any IF statement when you are trying to identify one of multiple text strings?

    *"&{"LH","RH"}&"*"

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

    Re: Need to count if Column A contains definded text and Column B equals defined word

    No, the IF function doesn't accept wildcards which is what the asterisks represent.

    Can you post some sample data and tell us what result you expect?

  6. #6
    Registered User
    Join Date
    05-31-2013
    Location
    USofA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need to count if Column A contains definded text and Column B equals defined word

    I don't have a specific example it was more of a general question for future reference. I have marked this thread as solved. Thanks much for your time and assistance.

    Jamie

+ 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. if column equals text string clear cells
    By wacky_diva in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-18-2013, 08:59 PM
  2. [SOLVED] Return Text Value If Input Equals 1, but only for 1st column with Value in same Row
    By grandboricua in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2013, 02:29 PM
  3. Replies: 3
    Last Post: 11-22-2013, 04:39 PM
  4. Search For Word in One Column, If Exists Put Text In Another Column
    By biohazard35 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-20-2012, 05:33 PM
  5. Replies: 3
    Last Post: 01-11-2012, 06:46 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