+ Reply to Thread
Results 1 to 3 of 3

Text equals a value

  1. #1
    Registered User
    Join Date
    09-03-2007
    Posts
    2

    Text equals a value

    Sorry if there is a post on here already but wondered if you can help. I have some football league statistics and I would like to make a letter equal a number and sum the results.

    i.e I have the data

    AFC FC Jokin W L D

    I would like the W to equal 3, L to equal 0 and D to equal 1.

    I would then like to sum these values to get the total points.

    Any help is appreciated,

    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    If you want to count all the W's, L's and D's, then multiply each W by 3, L by 0 and D by 1, you could use something like:

    =COUNTIF(C1:E10,"W")*3+COUNTIF(C1:E10,"L")*0+COUNTIF(C1:E10,"D")*1

    Of course, why bother counting the L's if you're going to count them as 0 and then add 0 to the total?

  3. #3
    Registered User
    Join Date
    09-03-2007
    Posts
    2

    Text equal a value

    Thanks for your help Paul, done the trick

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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