Decimal place conditional formatting for number value based on another cell value.

babaso_tawase

Board Regular
Joined
Feb 5, 2017
Messages
73
Office Version
  1. 2007
Platform
  1. Windows
Dear all,

I have excel 2007 data

I used formula as ` =round (data1+data2,rounding digit).


Rounding digit2

Column1Column2Column3
DATA1DATA2RESULT
1.021.052.07
1.051.052.1
1.91.13

I want result as below

Column1Column2Column3
DATA1DATA2RESULT
1.021.052.07
1.051.052.10
1.91.13.00


I want display result in result column 3.. as per rounding digit decided, but excel shows less digit if decimal is zero. Result column should not exclude zero. decimal should as per rounding digit regardless decimal value zero or other number.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hello! For cells in the third column, use the Number cell format with two decimal places.
 
Upvote 0
Hello! For cells in the third column, use the Number cell format with two decimal places.
Thanks for reply...but rounding digit cell is unlocked cell ..user can only enter data1 and data2...all other cells are locked...rounding digit may vary like 1, 2,3,4 etc...I am searching for this and other than Text function..
 
Upvote 0
But in the first post you write
I used formula as ` =round (data1+data2,rounding digit)
Now say the column is locked.
If you design this table, you can make changes at the design stage. Or did I misunderstand something?
 
Upvote 0
Only result column last is locked...first two columns and rounding digit cell is unlocked...
User can decide rounding digit.
Working above formula perfect but omitting zeros after decimal if present
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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