• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Change any cell Formula contain paste value

Abhijeet

Active Member
Hi

I have data in excel in that many cells contain formula i want paste value i do not want to show formula all dates do not want to change the format of that cells.
 

Attachments

  • Formula format.xlsx
    10.3 KB · Views: 5
Hi Abhijeet,

Select your range i.e. A1:F5
Press Ctrl+C (for copy)

Press Ctrl+Alt+V (for Paste Special)

Press V (for selecting values only)

Press Enter

Regards,
 
Hi Abhijeet ,

What will be the values in the data range ? Will they be less than , say 41000 ?

Will the dates all be later than 1/1/2013 ?

If so , after doing what Khalid has suggested , you can apply the following format to the entire data range :

[<41000]General;[>=41000]dd-mmm-yyyy

This will ensure that the dates are displayed in your format , while the values are displayed as numbers.

Narayan
 
Hi Abhijeet,

You can try below code. Just stay on the sheet where you want to remove formulas.
Code:
Public Sub Formulatovalues()
Dim rng As Range
Application.Calculation = xlCalculationManual
On Error Resume Next
For Each rng In ActiveSheet.UsedRange.SpecialCells(xlCellTypeFormulas)
  rng.Value = rng.Value
Next rng
On Error GoTo 0
Application.Calculation = xlCalculationAutomatic
Application.CalculateFull
End Sub
 
Back
Top