+ Reply to Thread
Results 1 to 3 of 3

Need help with a formula

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Charlotte, SC, US
    MS-Off Ver
    2007 and 2010
    Posts
    1

    Angry Need help with a formula

    So here is my issue. My students have to earn 100 service points this year. They can only earn 20 of those points from donations. I need a formula to total the donation points but not allow the total cell to go above 20. Help! I had this done once before but somewhere it got lost or altered by those using my sheet. Can you please help! I need this within the next six hours and I am hoping someone can solve this.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Need help with a formula

    Hello and welcome to the forum.


    It'd be something like =MIN(20, SUM(A2:H2))


    So, if the sum of those cells is less than 20, you get the sum of the cells. If it's greater than 20, you'll get 20 ... of course, if they're equal, it doesn't matter, you get 20.


    Regards, TMS


    Please note, because of the urgency, I have provided an answer. However ...

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Need help with a formula

    or another approach

    =IF(SUM(range of donation)>20,20,SUM(range of donation))

    but prefer using "min function"

    shorter & simple
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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