+ Reply to Thread
Results 1 to 8 of 8

Count if multiple strings and words are found in 2 columns.

  1. #1
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    2013
    Posts
    30

    Count if multiple strings and words are found in 2 columns.

    Hi All,

    I have the following formula that should return the count of any text string in range A5:A8 that is found in column D and any of these words "East" or "South" or "West" are found in column E.
    It is returning zero. Attached sample file.

    =SUM(COUNTIFS($D:$D,"*"&$A$5:$A$8&"*",$E:$E,{"East";"South";"West"}))

    Any idea how to make this formula to work ?
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Malaysia
    MS-Off Ver
    365 & WPS(2022)
    Posts
    2,020

    Re: Count if multiple strings and words are found in 2 columns.

    pls try this formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    841

    Re: Count if multiple strings and words are found in 2 columns.

    if you can live with a helper column, use this formula, say in K2, and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then your SUM will be like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Malaysia
    MS-Off Ver
    365 & WPS(2022)
    Posts
    2,020

    Re: Count if multiple strings and words are found in 2 columns.

    other option

    Cell A2 array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-05-2022
    Location
    Indonesia
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    35

    Re: Count if multiple strings and words are found in 2 columns.

    Try the "manual" version:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    it works for me, the logic is: find "Sidewalk East", "Sidewalk South", and "Sidewalk West" and repeat until the end of the list (Benches, Walls, Rails)
    Attached Files Attached Files
    Last edited by muhammadridho30; 03-07-2022 at 12:40 AM.
    I'm not an expert, but I'll try

  6. #6
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    2013
    Posts
    30

    Re: Count if multiple strings and words are found in 2 columns.

    I see the semicolon was causing the problem in the original formula. All others formulas also works!

    Thanks all for the help.

  7. #7
    Valued Forum Contributor
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365
    Posts
    841

    Re: Count if multiple strings and words are found in 2 columns.

    You’re welcome. Glad to help.
    Thank you for the feedback and for the reputation added.
    Have a blessed day.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Malaysia
    MS-Off Ver
    365 & WPS(2022)
    Posts
    2,020

    Re: Count if multiple strings and words are found in 2 columns.

    @elbarauljr You're Welcome. Glad to help . Thank You 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. Replies: 7
    Last Post: 04-02-2020, 08:42 AM
  2. [SOLVED] How to show a count of same words across multiple rows/columns
    By sav1979 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-11-2018, 11:35 AM
  3. Sumproduct of 2 columns, if one of 7 strings found in corresponding rows
    By lennartvl in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-28-2015, 10:09 AM
  4. Moved to commercial services forum.
    By Midnight-Oil in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2015, 01:05 PM
  5. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  6. [SOLVED] find and count words in multiple columns
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-06-2012, 07:02 PM

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