Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-26-2017, 07:07 AM
Cosmo Cosmo is offline Copying values that have conditional formatting applied Windows Vista Copying values that have conditional formatting applied Office 2007
Competent Performer
Copying values that have conditional formatting applied
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

Thanks for your response. I am aware that the formatting only changes the display, not the underlying value. What I'm trying to do is copy the formatted value (not the actual value), which works for the formatting applied to the cells. A cell has the value .6275 and is formatted to 2 decimals, displays in the spreadsheet as .63 and when copied the pasted value is also .63.

The problem is that I have conditional formatting applied to override this formatting for cells with a certain value. The formula I am using is:

Quote:
=AND((INT(A1)=ROUND(A1,2)),A1>=10)
The formatting applied to those cells is zero decimal places. And this works properly to remove the decimal from values that are 2 digits (>= 10) and the decimal value is 0. A cell with the value of 12.0 will display as 12 in the cell, but when copied, the pasted value is still 12.0, which is how the cells are formatted.

It looks like my only solution is to copy the cells into another temporary spreadsheet, and using Paste Special, paste only the values. This does seem to include the conditional formatting (e.g. 12.0 becomes 12). This is an extra step that I was hoping to avoid, although I should be able to script this at some point.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Multiple Or Values Phil H Excel 4 05-21-2015 04:16 AM
Conditional Formatting for values with more than 2 decimals lynchbro Excel 6 04-17-2015 06:05 AM
Copying values that have conditional formatting applied Copying Conditional Formating lynette Excel 2 03-06-2015 11:53 AM
Copying values that have conditional formatting applied Copying and pasting values with unequal data columns grexcelman Excel Programming 5 12-05-2014 11:36 AM
Copying values that have conditional formatting applied Conditional formatting that ignores other formatting rules info_guy2 Excel 1 07-03-2014 10:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft