Round a value based on decimal places specified in another cell

engineer789

New Member
Joined
Sep 27, 2017
Messages
1
Is it possible to have a rounding formula reference another cell to determine how many decimal places to round?
For example:
Column 1 would be list of items.
Column 2 would be a value/total associated with each item.
Column 3 would list the unit of measure applicable to each item & value in column 1 & 2. such as Square feet, Cubic Yards, Each,Tons, Acres, etc...
Column 4 would list the number of decimal places applicable to the units of measure such as: Values for items to be measured in square feet need to round to 2 decimals, values for items measured in Tons should round to 1 decimal, values for items to be measured in Cubic Yards should be rounded to 3 decimals etc...

I basically want the rounding formula to reference the column of designated decimal places 0,1,2,3 to determine how many digits to round to.

Haven't been able to figure this one out. Any help would be greatly appreciated.

Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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