How to cap a cell at 100%

Project217

New Member
Joined
Mar 7, 2022
Messages
24
Office Version
  1. 365
Platform
  1. MacOS
Hi.

Just trying to cap the percentage at 100% it will currently go past 100%
The code is =IFERROR((DATEDIF(M10,TODAY(),"d")+1)/(DATEDIF(M10,N10,"d")+1),"0%")
This gives me a percentage required for a task completion of the date entered in cells M10 and N10
Any Help Would Be Greatly appreciated
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi There

Have you tried... This is untested seeing as I am not getting any % value result from formula when I eneter dates...just maybe doing it wrong somewhere, but please test the below...

Excel Formula:
=MIN(100,IFERROR((DATEDIF(M10,TODAY(),"d")+1)/(DATEDIF(M10,N10,"d")+1),"0%"))
 
Upvote 0
Hi There

Have you tried... This is untested seeing as I am not getting any % value result from formula when I eneter dates...just maybe doing it wrong somewhere, but please test the below...

Excel Formula:
=MIN(100,IFERROR((DATEDIF(M10,TODAY(),"d")+1)/(DATEDIF(M10,N10,"d")+1),"0%"))
 
Upvote 0
Hi Jimmypop, Thanks for your reply, Unfortunately this didn't work The cell percentage Value still goes past 100%
 
Upvote 0
What is the criteria for the dates? Is it entered via a formula? maybe give an example of where the dates exceed 100
 
Upvote 0
Ok So the dates are for scheduled or planned start and completion of a task and depending on today's date is what percentage the task should be complete, This percentage is going over 100% Hope this makes sense
Screen Shot 2022-08-30 at 18.22.39 pm.png
What is the criteria for the dates? Is it entered via a formula? maybe give an example of where the dates exceed 100
 
Upvote 0
Try it with Stephen suggestion... Thinking I made a rookie mistake here🙈and let us know
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,840
Members
449,096
Latest member
Erald

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