Removing Decimals From The Formula Bar

milwphil

Board Regular
Joined
Aug 1, 2010
Messages
120
Good afternoon!

I have a spreadsheet in which a validation macro removes and rounds data that contains decimals within the cells;however, I noticed when I converted the spreadsheet to XML the decimals were still being captured and not rounded.

When I went back into the spreadsheet, the cell was rounded (no demimals-as intended), but in the formula bar the data maintained the decimal.

I tried formatting the cells without decimals, but it's not caught if the user cuts and pastes data.

How can I remove the decimals from the data in the formula bar?

Any suggestions?

Thanks,
Phil
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
For once I answered my own question (Office 2010):
Office button > Excel Options > Advanced > When Calculating this workbook > Set precision as displayed.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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