Limit results pf formula to <20

idmherb

New Member
Joined
May 19, 2011
Messages
2
I have a sheet that determines the span of start date to current date with the number of days. I need to allocate points for each entry. Each person's entry gets 1 point for every 3 months worked with a maximum of 20 points or five years. So far, I have been able to calculate the span of time into days, then divide the days by 30 to get the number of months, then divide the months by 4 to get the number of quarters (thus number of points), however the maximum point number is 20. How do I limit the results to end at 20?
Thanks for your help
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Welcome to the board...

Use the MIN Function

=MIN(threshold, value)

So with a basic formula of say A1+B1
And you want a result no larger than 20

=MIN(20,A1+B1)


Hope that helps.
 
Upvote 0
Thanks All ...worked like a charm!..... Well even better than the charm,...I tried that before I posted here:laugh:
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,470
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top