+ Reply to Thread
Results 1 to 2 of 2

Clean up Survery with multiple right answers (tried IF, SUM, ISBLANK, NOT, AND)

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    Tempe, Arizona
    MS-Off Ver
    2013
    Posts
    10

    Clean up Survery with multiple right answers (tried IF, SUM, ISBLANK, NOT, AND)

    The Raw Data is a survey I was given, responses are indicated as 1-6, 1 is the equivalent of an A on a scantron.

    For the majority of the data I was able to use the following formula:
    =INDEX(Raw!$X5:$AC5,MATCH(FALSE,ISBLANK(Raw!$X5:$AC5),0))

    The above formula is perfect for finding the respondent's answer if they only selected one answer.

    My issue is for questions that have multiple right answers such as Check all the apply (and the right answer would be B, C, D).
    Example would be Question 6

    answer for Question 6 is B, C, D and I am trying to code it that all three answers must correct
    I am trying to code this as:
    1 for completely correct
    0 for not correct
    * for all empty cells


    As of right now I have two formulas that work
    =IF(AND(NOT(ISBLANK(Raw!$AF4)),NOT(ISBLANK(Raw!$AG4)),NOT(ISBLANK(Raw!$AH4))),"1")

    The above evaluates the three correct spaces are filled and are given one
    does not evaluate all three spaces are empty then * or
    else as 0

    and
    =IF(SUM(Raw!$AF5:$AH5)=9,"1","0")

    The above formula works great except it doesn't output a * or N/A for the data with no responses, which is what I want for cells G7, G10.

    Any Suggestions
    KAMERLOCHER-RAWDATA.xls

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Clean up Survery with multiple right answers (tried IF, SUM, ISBLANK, NOT, AND)

    Hi htere. try this out.

    =IFERROR(IF(--(Raw!AF4&Raw!AG4&Raw!AH4)=234,1,0),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Tallying Survery Results
    By scarpenter42 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2015, 11:25 AM
  2. [SOLVED] Coding Convention Questions #2 (To clean up or not to clean up)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 03-31-2014, 08:18 PM
  3. [SOLVED] Multiple issues - Multiple IF staements with multiple answers, or other coding.
    By inzanesrt4 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2013, 08:53 PM
  4. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  5. Clean Function to Clean Entire Sheet
    By gema in forum Excel General
    Replies: 7
    Last Post: 11-05-2009, 10:07 AM

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