Rounding up to nearest percent
I am using this formula in a cell:
=100*(COUNTIFS([FW % Complete]13:[FW % Complete]24, 1) / COUNT([FW % Complete]13:[FW % Complete]24)) + "%"
I would like to know how to make the percentage round to the nearest percentage. Right now I am getting 94.11765%. Thanks!
Comments
-
You would wrap the COUNTIFS/COUNT portion in a ROUND statement.
=100*ROUND(COUNTIFS([FW % Complete]13:[FW % Complete]24, 1) / COUNT([FW % Complete]13:[FW % Complete]24)) + "%"
-
Thank you. It is rounding to 100 and I need it to round to the nearest percent. So since it's 94.17765, I need it to round to 94 or even 95 if that is easier. Thanks!
-
My apologies. I forgot to add 2 to the ROUND to tell it to round to the nearest hundredth. Basically we tell it to round to the nearest second decimal point then multiply by 100.
=100*ROUND(COUNTIFS([FW % Complete]13:[FW % Complete]24, 1) / COUNT([FW % Complete]13:[FW % Complete]24), 2) + "%"
.
You could also wrap the entire calculation before adding the percent symbol in a ROUND function and leave it to round to the nearest whole number.
=ROUND(100*(COUNTIFS([FW % Complete]13:[FW % Complete]24, 1) / COUNT([FW % Complete]13:[FW % Complete]24))) + "%"
-
That worked! Thank you!!
-
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives