Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 01-26-2017, 09:17 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

Attached is a demo file, notice that all cells are formatted with the custom formatting '0.0#'.

The Conditional Formatting removes the decimals from any other values that are 10 or more, as you can see in the first column. If you clear the custom formatting, from the file then you'll see the values as 98.0.

When I copy the top row, it comes out as:
Quote:
96.0 8.1 11.3 7.3 7.6 96.0 6.8 6.8 5.5 1.1 12.0 6.0 0.63
What I'm looking for is:
Quote:
96 8.1 11.3 7.3 7.6 96 6.8 6.8 5.5 1.1 12 6 0.63
While doing this, I found that the 'Paste Special' looks like it uses the actual value which has 4 decimal places for the last cell, so it comes out as
Quote:
96 8.1 11.3 7.3 7.6 96 6.8 6.8 5.5 1.1 12 6 0.6278
So, using the 'Paste Special' might not be the answer I'm looking for after all. I may have to come up with a scripted solution unless there's a way to do this otherwise. I've tried several of the options in the 'Paste Special' dialog, and didn't notice any that gave me the result I need.
Attached Files
File Type: xlsx CustomFormattingTest.xlsx (10.8 KB, 10 views)
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 12:51 AM.


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