+ Reply to Thread
Results 1 to 6 of 6

limiting a returned value?

  1. #1
    Registered User
    Join Date
    01-31-2011
    Location
    winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    4

    limiting a returned value?

    I'm having trouble figuring this one out.

    I'm putting together a grades database. We have a policy that if a student gets less than 70% on an exam they can rewrite it. Their final mark will then be the average of the first attempt and second attempt, not to exceed 70%

    In the listed formula, f13 is the first attempt, g13 is the retest. I want H13 to either show f13(if the value is greater than 70) or if F13 is <70% show the average of F13,13 not to exceed 70%.

    It does what i want except limit the displayed average

    =IF(F13<0.7,AVERAGE(F13,G13),F13)

    thanks in advance.
    Last edited by jb88ci; 01-31-2011 at 05:06 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: limiting a returned value?

    You need the MIN() function in there

    =IF(F13<0.7,MIN(.7,AVERAGE(F13,G13)),F13)


    So - how cold is it there?

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: limiting a returned value?

    Try

    =IF(F13<0.7,MIN(0.7,AVERAGE(F13,G13)),F13)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    01-31-2011
    Location
    winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: limiting a returned value?

    Yesterday was -35C with the windchill, base temp was about -25. Warmer today, about -20

  5. #5
    Registered User
    Join Date
    01-31-2011
    Location
    winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: limiting a returned value?

    Thanks a bunch, that did the trick.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: limiting a returned value?

    You're welcome. Don't forget to mark your thread as SOLVED. (see FAQ in menu bar at top of forum page for directions).

+ 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