+ Reply to Thread
Results 1 to 4 of 4

IF text equals yes, 10, maybe, 5, no 0 THEN SUM the same in 2 over columns

  1. #1
    Registered User
    Join Date
    06-02-2015
    Location
    London
    MS-Off Ver
    2016 Preview
    Posts
    2

    IF text equals yes, 10, maybe, 5, no 0 THEN SUM the same in 2 over columns

    Hello,

    Hope the title describes what I'm trying to achieve. I had a search if this had already been done but I couldn't find it (probably down to a bad search term).

    4 columns where the text value could be either "yes", "Maybe" or "No". Each value then equals a number, so yes=10, maybe=5, no=0. I then want to SUM the values across 3 columns in a row to a total. The table might look like this:

    Yes No No Maybe

    So in this case the total would be 15.

    So far I've got the following:

    Please Login or Register  to view this content.
    This gets me the value, but Excel doesn't recognize it as a number and when I try to use ISNUMBER, I get an error. I know this is only the start of the statement and doesn't include the SUM part.

    Any help would be massively appreciated.

    Thanks for looking.

    J

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

    Re: IF text equals yes, 10, maybe, 5, no 0 THEN SUM the same in 2 over columns

    =countif($a1:$d1,"yes")*10+countif($a1:$d1,"maybe")*5

    and drag down
    Last edited by oeldere; 06-02-2015 at 06:35 AM. Reason: range changed
    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.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF text equals yes, 10, maybe, 5, no 0 THEN SUM the same in 2 over columns

    ...or an array formula entered with Ctrl-Shift-Enter

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-02-2015
    Location
    London
    MS-Off Ver
    2016 Preview
    Posts
    2

    Re: IF text equals yes, 10, maybe, 5, no 0 THEN SUM the same in 2 over columns

    Quote Originally Posted by oeldere View Post
    =countif($a1:$d1,"yes")*10+countif($a1:$d1,"maybe")*5

    and drag down
    Worked Thank you, great help and really quick! Appreciate it

    J

+ 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. Values in Columns to Rows until Sum Equals Value
    By MichaelGG1581 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2015, 12:05 PM
  2. Hiding columns to the right if cell value equals to 1
    By sourabhg98 in forum Excel General
    Replies: 1
    Last Post: 02-02-2015, 08:34 PM
  3. Hiding columns to the right if cell value equals 1
    By sourabhg98 in forum Excel General
    Replies: 0
    Last Post: 02-02-2015, 09:19 AM
  4. Selecting columns where cell in row equals value
    By henboffman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2011, 05:27 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