+ Reply to Thread
Results 1 to 2 of 2

Using the COUNT function to count letters generated by an IF function

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using the COUNT function to count letters generated by an IF function

    I'm trying to create a standings chart in Excel and I want to count the amount of wins, losses, and draws. I used an IF statement to determine if the game was a win, loss, or draw and output a "W", "L", or "D".
    This is the statement I used.
    "=IF(E7>0, "W", IF(E7<0, "L", "D"))"

    Now, on the standings sheet, I'd like to count the W's in the W column, the L's in the L column, and the D's in the D column.

    The problem I'm having is that when I run the function "=COUNT(DC!F2:F8, "W")", it gives a value of "0". It does this for L and D as well. How do I get the Count function to recognize the W, L, and D. I'd like the standings page to automatically update when I add new results to the team's sheets.

    Also, is there a way to multiply the count of W's by 3?, L by 0, and D's by 1 and then sum the total in another cell?

    Thanks!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Using the COUNT function to count letters generated by an IF function

    You need COUNTIF not COUNT - try this for a single function

    =COUNTIF(DC!F2:F8,"W")

    for the total try

    =SUM(COUNTIF(DC!F2:F8,{"W","D"})*{3,1})
    Audere est facere

+ 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: 2
    Last Post: 06-23-2009, 11:16 AM
  2. Count Formula-Would this be a good example to use the count function?
    By JK1234 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-01-2008, 02:44 PM
  3. Count function to count a specific value.
    By Zboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2008, 12:22 AM
  4. Count If-How can I use the COUNTIF function to count
    By calli in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-28-2008, 05:34 PM
  5. How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 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