+ Reply to Thread
Results 1 to 4 of 4

Just need some quick help with calculating test scores using a macro

  1. #1
    Registered User
    Join Date
    11-02-2018
    Location
    Pittsburgh
    MS-Off Ver
    Office 2016
    Posts
    6

    Just need some quick help with calculating test scores using a macro

    Given a test score in A1, I have to create a command button that will assign the word "Pass" or "Fail" to cell B1. Pass is a score of 60 or greater, and Fail is a score of less than 60.

    I have some code started such as:
    Score = Range("A1").Value
    If Score <60 Then
    Result = "Fail"
    Else
    Result = "Pass"
    End If

    I just wanted to know if this would satisfy my conditions.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Just need some quick help with calculating test scores using a macro

    Hi,

    Yes, it would work.
    Other option:
    Please Login or Register  to view this content.
    Last edited by GC Excel; 11-02-2018 at 12:28 PM.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Just need some quick help with calculating test scores using a macro

    Please Login or Register  to view this content.

  4. #4
    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: Just need some quick help with calculating test scores using a macro

    The essence of the code is correct but not the syntax. Something like

    Please Login or Register  to view this content.
    Of course you don't actually need a macro. A simple function in B1 would be better
    i.e.

    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.

+ 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. Quick help with creating a macro for determining Pass or Fail of a set of scores
    By alanjackson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2018, 11:44 AM
  2. scores from test
    By Lene in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 08-18-2012, 09:33 AM
  3. Pull sub-test scores from test w/best overall test score (PSAT)
    By PowerSchoolDude in forum Excel General
    Replies: 0
    Last Post: 11-19-2009, 08:29 PM
  4. Totalling top 7 of 10 test scores
    By Wkenddad in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2007, 09:36 PM
  5. Calculate mean of test scores from rows of test answers
    By RiotLoadTime in forum Excel General
    Replies: 1
    Last Post: 07-26-2006, 12:20 PM
  6. comparing test scores over a few years
    By Justin in forum Excel General
    Replies: 0
    Last Post: 07-03-2006, 08:45 AM
  7. Calculating Percentiles of Test Scores?
    By ddawg09 in forum Excel General
    Replies: 4
    Last Post: 02-19-2006, 05:30 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