+ Reply to Thread
Results 1 to 7 of 7

right answer has value 1,wrong answer has value 0

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Türkiye
    MS-Off Ver
    Excel 2013
    Posts
    80

    right answer has value 1,wrong answer has value 0

    Hi everybody,

    I have answer sheets with 4 choices.But I need to change right answer to 1 and the rest wrong answer to 0.

    with sample- I want to change page 1 to page 2 in this sample

    page1 to page2.xlsx

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: right answer has value 1,wrong answer has value 0

    See attached

    Sayfa1: See table rearranged

    Sayfa2: Question numbers copied down column A and formula in column C
    Attached Files Attached Files
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: right answer has value 1,wrong answer has value 0

    Edited update

    in Sayfa!A2
    =INT((ROW()-1)/4)+1
    and copy down the column for 400 rows

    in Sayfa2!B2
    =CHAR(65+MOD(ROW()-2,4))
    and copy down for each row

  4. #4
    Registered User
    Join Date
    09-05-2012
    Location
    Türkiye
    MS-Off Ver
    Excel 2013
    Posts
    80

    Re: right answer has value 1,wrong answer has value 0

    Thank you Special-K .it works but it takes time.I have limited time and I need to change 900 sheets.Can anyone produce a macro?


    Quote Originally Posted by Special-K View Post
    Edited update

    in Sayfa!A2
    =INT((ROW()-1)/4)+1
    and copy down the column for 400 rows

    in Sayfa2!B2
    =CHAR(65+MOD(ROW()-2,4))
    and copy down for each row

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: right answer has value 1,wrong answer has value 0

    try it
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-05-2012
    Location
    Türkiye
    MS-Off Ver
    Excel 2013
    Posts
    80

    Re: right answer has value 1,wrong answer has value 0

    hi nilem.thank your for your help.it is exactly what I need.can your rearrange the macro for 5 choices.NEW.xlsx

    Please Login or Register  to view this content.

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: right answer has value 1,wrong answer has value 0

    Please Login or Register  to view this content.

+ 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