+ Reply to Thread
Results 1 to 7 of 7

Assigning specific values to strings and/or numbers

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    16

    Assigning specific values to strings and/or numbers

    Hi

    I've attached an example of the worksheet I'm creating. It's basically a score sheet for quiz questions.
    The answer value is in column C and the contestants answers in columns D-J under their respective names. Columns K-Q will record their scores and these are the columns I want to create a formula for to input their score. They receive 2 points if the answer is correct (for both a string and a number answer) and 1 point (for numeric answers only) for the nearest answer only if no one has answered correctly. More than one person can have 2 points if they are correct or 1 point if they are equally the closest (either + or -).

    Would anyone please be able to help me with the formula for the scoring. (I've added a notes column on the attached to help, hopefully) The questions in each row could change from numeric to strings from one week to another so any formula would have to cater for both string or number if this is possible.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Assigning specific values to strings and/or numbers

    @xyba, the point I was referring to in the other post regards Text "closest match" was what happens if:

    Q: Best football team on earth
    A: Tottenham Hotspur
    and the answers are:

    Tottingham (submitted by Ossie Ardiles)
    Spurs
    Arsenal
    what then... technically 2 responses are correct and one participant is seriously miguided

    If you're concerned only with specific text matches then it's pretty straightforward add-on from prior solution.

    If you're concerned with "near" matches in text terms things become quite convoluted (quite quickly)

  3. #3
    Registered User
    Join Date
    10-20-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Assigning specific values to strings and/or numbers

    Thanks for the reply.

    The text matches would be specific and "near-misses" are counted as incorrect.
    Last edited by DonkeyOte; 10-21-2010 at 09:40 AM. Reason: removed unnecessary quote

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Assigning specific values to strings and/or numbers

    OK, so before we decided to use R5 for the smallest numeric variance rather than repeating the calculation for each column - let's adjust that:

    Please Login or Register  to view this content.
    Then:

    Please Login or Register  to view this content.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Assigning specific values to strings and/or numbers

    Try this workbook

    If the question is numeric then the answers are checked against the minimum value from the helper table.

    Hope this helps
    Attached Files Attached Files
    Last edited by Marcol; 10-21-2010 at 09:50 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Registered User
    Join Date
    10-20-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Assigning specific values to strings and/or numbers

    Thanks for your help both. Sorted now.

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Assigning specific values to strings and/or numbers

    On behalf of both, happy to have been of help.

+ 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