+ Reply to Thread
Results 1 to 9 of 9

count text in two cells

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    count text in two cells

    I have a list of my High schools football game in one column and in another column I have WON or LOST I know I can use =COUNTIF(F4:F305,"Breckinridge*") to count the the number of time they have played each team or the grand total number of wins and lost but is there a way to match each team up with WON and LOST column and count that and get the win and lost record of each team

    1993
    WON Breckinridge Co.
    WON LaRue County
    WON Grayson County*
    WON Marion County*
    WON Central Hardin
    LOST Nelson County*
    LOST Elizabethtown
    WON Barren County*
    WON North Hardin
    WON North Bullitt*
    LOST Woodford County
    1994
    WON Breckinridge Co.
    WON LaRue County
    WON Grayson County*
    WON Marion County*
    LOST Central Hardin
    WON Nelson County**
    LOST Elizabethtown
    WON Barren County*
    LOST North Hardin
    WON North Bullitt*
    WON Woodford County
    WON South Oldham
    LOST Lincoln County

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: count text in two cells

    Are you looking for this





    if answers helped click" * " add rep icon in the bottom left corner of my post
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: count text in two cells

    With an pivot table.

    See the result.

    Aantal van choise Kolomlabels
    Rijlabels 1993 1994 Eindtotaal
    Barren County* 1 1 2
    Breckinridge Co. 1 1 2
    Central Hardin 1 1 2
    Elizabethtown 1 1 2
    Grayson County* 1 1 2
    LaRue County 1 1 2
    Lincoln County 1 1
    Marion County* 1 1 2
    Nelson County* 1 1
    Nelson County** 1 1
    North Bullitt* 1 1 2
    North Hardin 1 1 2
    South Oldham 1 1
    Woodford County 1 1 2
    Eindtotaal 11 13 24
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    09-21-2013
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: count text in two cells

    It did help a little the * after the teams name is overtime on the countif function =COUNTIF(F4:F305,"Breckinridge*") if you put a * after the word it looks for a words that has Breckinridge at the begin of it and some text after it is there a way to do it on SUMPRODUCT

  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: count text in two cells

    One way...

    A4 = Breckinridge

    =SUMPRODUCT(--ISNUMBER(SEARCH(A4,F4:F305)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: count text in two cells

    you can use =SUMPRODUCT((ISNUMBER(SEARCH($D2,$A$2:$A$26$))*($B$2:$B$26=E$1)))

    with this in d2 you can keep wild card characters

  7. #7
    Registered User
    Join Date
    09-21-2013
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: count text in two cells

    thank you this is what I wanted
    =SUMPRODUCT((ISNUMBER(SEARCH(D13,Sheet2!F4:F664))*(Sheet2!E4:E664=E1)))
    and you helped a lot

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

    Re: count text in two cells

    =SUMPRODUCT(--ISNUMBER(SEARCH(D13,Sheet2!F4:F664)),--(Sheet2!E4:E664=E1))

    For more info on SUMPRODUCT see this:

    http://xldynamic.com/source/xld.SUMPRODUCT.html

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: count text in two cells

    Hello Cadking if answer resolves your query than mark the thread as solved go to thread tools mark as solved


    if answer helped you click " * "add rep icon in the bottom left corner of my post

+ 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] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  2. [SOLVED] count cells that contain text but do not count cells containing only a formula
    By cprpacific in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2013, 03:15 PM
  3. [SOLVED] Count number of cells that contain text but exclude cells that contain quotation marks
    By Cantyman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 03:57 PM
  4. Replies: 2
    Last Post: 05-09-2012, 11:22 PM
  5. count how many cells are text
    By SteveLa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2011, 11:07 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