Paste Special Multiply Changing Number Format to One Decimal

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
3,277
Office Version
  1. 365
Platform
  1. Windows
When I use the Multiply feature of paste special, Excel converts the number format to one decimal. I confirmed that the number format was 2 decimals before.

Is it doing that for you? Excel WHY!!!! :cry:
1741970490527.png
 
Select Paste Values, Otherwise it will paste the format of the source cell.

1741977970504.png
 
Upvote 0
Solution
Hi Dante. Your right, I would need to format the cell I copied with the same format as the destination. I was just thinking that they separated those functions because we're not really pasting values. I made a simple routine and added it to my QAT.

VBA Code:
Sub MultiplyCells()
  Dim mVal As Double
  Dim Cel As Range
  
  mVal = Val(CopyFromClipboard)
  
  On Error Resume Next
  For Each Cel In Selection
    Cel.Value = Cel.Value * mVal
  Next Cel
  
End Sub
 
Upvote 0

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