Microsoft optimize

Convert Excel calculations to literal values

Copying Excel data to a different location can send your calculations into a tailspin. Avoid problems by using Paste Special to copy values rather than formulas.

Suppose you have a worksheet with columns and rows chock full of calculations, running the gamut from Sum functions to If tests to vertical and horizontal lookups. The calculations are correct and your data is pristine. You save the worksheet.

Now you need to use a subset of that worksheet in another worksheet. If all you're going to do is print the subset of columns or rows, you can simply hide those rows and columns, print what you need, and unhide the columns and rows later to restore the sheet to its normal state.

But if you're going to e-mail a copy of the sheet to a coworker or a third party, you may not feel comfortable simply hiding certain rows and columns. You may want to delete them instead. The problem is, of course, if you start deleting rows and columns, you're going to get error messages in the cells that depend on the cells you deleted.

The solution? First and foremost, save a copy of your pristine worksheet under a new name. Just go to File | Save As and add "_work" to the end of the "real" name. Select the entire sheet and then copy it. Without moving the cursor, go to Edit | Paste Special. Now, select the Values option, as shown in Figure A, and click OK. When you do, Excel will replace all the formulas with the values they're currently calculating and displaying. At that point, you can delete columns or rows and move cells around without generating a single error message.

Figure A

paste special values

Note

If you use the Paste Special | Values option and the data you're pasting contains calculated dates or numbers formatted as currency, the date calculations will be pasted as the Julian date value, and the currency will lose its dollar signs and commas. To preserve that kind of formatting when you convert calculations to literals, simply choose the Values And Number Formats option instead of Values.

7 comments
fledis
fledis

Paste Special options are very helpful sometimes, however what I don't like about it is radio buttons in the Paste section. I usually need to paste Values, and Formats (all formats- not only for numbers), and Column widths, so I have to use the command three times... By the way- there isn't another way how to copy a column with an appropriate width, is it?

mony_altaf
mony_altaf

is it possible to express cell value in to words

Daniel.Muzrall
Daniel.Muzrall

Most likely you'd have to do a Find/Replace if you wanted to change a specific value to a specific word. If you wanted to do it conditionally, you would need to insert another column and then use nested IF statements to get your words. For example (taken from MS Excel 2007 Help) if you wanted to assign letter grades based upon a numeric test score: =IF(A2>89,"A",IF(A2>79,"B", IF(A2>69,"C",IF(A2>59,"D","F"))))

103562
103562

What is the keyboard shortcut of copying and pasting the value?

vjanecky
vjanecky

select the grouping of cells you wish to paste as value. Go to the edge of that selected group, right click and drag away then return to its original position. A menu will appear in which you select "Copy Here as Values Only". This will paste the values...its seems like a lot of work but its pretty easy. Hopefully that makes sense. Just another way of performing the same task. Not sure which is most efficient...i guess that is up to you.

Susan.Mazza4
Susan.Mazza4

Hey! Thanks for this tip. I am constantly copying values from spreadsheets that have formulas and it gets rather tiresome to go through the menu each time to get to the Paste..Value option. This little trick will save me lots of time!

Editor's Picks

IT Buying Cycle

Learn more