+ Reply to Thread
Results 1 to 6 of 6

Find Key Word or Phrase Between 2 Columns & Count or Sum Up Instances

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Question Find Key Word or Phrase Between 2 Columns & Count or Sum Up Instances

    Hi,

    I'm seeking a key word or phrase out of 2 columns & count or total the instances only if both criteria has been ment.

    I'm trying to use these function but they're not fully functional

    =COUNTIF(OR($E$15:$E$1000,"*Open*",$G$15:$G$1000,"*Asset*"))


    With this one, it works in some cells but not all cells - Why is this?
    =SUMPRODUCT(--($E$15:$E$1000="Open"),--($G$15:$G$1000="Asset"))

    More importantly, requesting assistance to get one of these working or for somone to suggest another type of function.

    Thanks
    Last edited by mycon73; 10-15-2014 at 03:38 PM.
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find Key Word or Phrase Between 2 Columns & Count or Sum Up Instances

    Maybe like this

    =SUM(COUNTIF($E$15:$E$1000,"Open"),COUNTIF($G$15:$G$1000,"Asset"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Find Key Word or Phrase Between 2 Columns & Count or Sum Up Instances

    The COUNTIF is checking if the test string is contained anywhere in each cell in the range.

    The SUMPRODUCT is counting only the cells that exactly match the test string.

    So if for example,
    E20 = "open sesame"
    then the COUNTIF would increment but the SUMPRODUCT would not.

    Or rather, it would if you didn't incorrectly nest the OR in the COUNTIF.

    Use COUNTIFS instead.
    Please Login or Register  to view this content.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word or Phrase Between 2 Columns & Count or Sum Up Instances

    Hi Group,

    Thanks for the assistance.

    I think I also found a solution to my own problem with: =COUNTIF(E15:E36, "=Open")-COUNTIF(G15:G37, "=*Asset*")

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Find Key Word or Phrase Between 2 Columns & Count or Sum Up Instances

    I can imagine at least four different ways that would deliver wrong answers compared to the requirement stated in OP but okay!

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word or Phrase Between 2 Columns & Count or Sum Up Instances

    Hi Ben,

    Examples given are working.


    Thanks

+ 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] Find Text - Key Word or Phrase Between Dates
    By mycon73 in forum Excel General
    Replies: 8
    Last Post: 10-15-2014, 02:53 PM
  2. Count instances of a certain word in a range
    By Richard Champlin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2014, 04:47 PM
  3. IF formula to find a word but Not find a certain phrase
    By byrdjulie in forum Excel General
    Replies: 2
    Last Post: 02-03-2011, 05:18 AM
  4. is it possible to count instances of a word in a column?
    By alexfleming in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-14-2009, 04:24 PM
  5. Find and Replace Instances of a Word in a Cel
    By Marx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2006, 08:45 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