+ Reply to Thread
Results 1 to 6 of 6

Grade Point Average

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    21

    Grade Point Average

    Hello Mates,

    Needing to calculate random GPA's. 0.00-4.00. My formula I have written is =RANDBETWEEN(0.00-4.00) however, it is only returning whole integers. I need random averages to be D.DD i.e. 3.25, 2.50, etc..... Where am I going wrong? I try to format the cells of the whole numbers to fractions - but no luck. Any help is appreciated.


    Solved
    Last edited by gregfetzer; 09-27-2012 at 04:39 PM. Reason: Solved

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Grade Point Average

    RandBetween returns an integer.

    Try =RANDBETWEEN(0, 16)/4
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Grade Point Average

    randbetween will only return an integer (http://spreadsheets.about.com/b/2009...n-function.htm), so try this work-around

    =RANDBETWEEN(100,400)/100
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-26-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Grade Point Average

    Thank you both for your help. It is appreciated

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Grade Point Average

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Grade Point Average

    Thanks for the star

+ 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