Reducing Decimal Places within an equation

rcocrane99

New Member
Joined
May 9, 2024
Messages
46
Office Version
  1. 365
Platform
  1. Windows
So the short answer is I can do it another way and completely disregard this buttt.... Is there any way to reduce my % to only be 1 decimal place given my equation.
This formula is probably over complicated as I can make just another cell and then have it be a percent and just add/remove decimal places that way but I thought this was a fun way to work around it. Mainly looking at the purple text for that last section for %.

Thanks!!

=IF(SUMIFS('Ga Metal Tracker'!$D:$D,'Ga Metal Tracker'!$B:$B,"Primary EW",'Ga Metal Tracker'!$E:$E,A3)=0,"",SUMIFS('Ga Metal Tracker'!$D:$D,'Ga Metal Tracker'!$B:$B,"Primary EW",'Ga Metal Tracker'!$E:$E,A3))&" kgs or "&(SUMIFS('Ga Metal Tracker'!$D:$D,'Ga Metal Tracker'!$B:$B,"Primary EW",'Ga Metal Tracker'!$E:$E,A3)/K3)*100&"%"
1736210699745.png
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I think you just need to add the ROUND function into your equation, i.e.
change this part:
Rich (BB code):
&(SUMIFS('Ga Metal Tracker'!$D:$D,'Ga Metal Tracker'!$B:$B,"Primary EW",'Ga Metal Tracker'!$E:$E,A3)/K3)*100&"%"
to this:
Rich (BB code):
&ROUND((SUMIFS('Ga Metal Tracker'!$D:$D,'Ga Metal Tracker'!$B:$B,"Primary EW",'Ga Metal Tracker'!$E:$E,A3)/K3),3)*100&"%"
 
Upvote 0
Solution
I think you just need to add the ROUND function into your equation, i.e.
change this part:
Rich (BB code):
&(SUMIFS('Ga Metal Tracker'!$D:$D,'Ga Metal Tracker'!$B:$B,"Primary EW",'Ga Metal Tracker'!$E:$E,A3)/K3)*100&"%"
to this:
Rich (BB code):
&ROUND((SUMIFS('Ga Metal Tracker'!$D:$D,'Ga Metal Tracker'!$B:$B,"Primary EW",'Ga Metal Tracker'!$E:$E,A3)/K3),3)*100&"%"
Aha! I knew there was something! Thanks!
 
Upvote 0

Forum statistics

Threads
1,225,367
Messages
6,184,547
Members
453,241
Latest member
rahuldev31

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