Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2015, 01:35 PM
lynchbro lynchbro is offline Conditional Formatting for values with more than 2 decimals Windows 8 Conditional Formatting for values with more than 2 decimals Office 2010 64bit
Advanced Beginner
Conditional Formatting for values with more than 2 decimals
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default Conditional Formatting for values with more than 2 decimals

I have a column of data (Column L) that I wish to highlight with conditional formatting if the values populated are greater than 2 decimals out.



For example:
38,519.79 would not be highlighted
38,519.7899 would be highlighted

Would this be conditional formatting with the use of a formula?

Reply With Quote
  #2  
Old 04-16-2015, 09:49 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Conditional Formatting for values with more than 2 decimals Windows 7 64bit Conditional Formatting for values with more than 2 decimals Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Try the following formula as CF :
Code:
=LEN(A1&"")-FIND(".";A1&"")>2
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 04-16-2015, 11:44 AM
lynchbro lynchbro is offline Conditional Formatting for values with more than 2 decimals Windows 7 64bit Conditional Formatting for values with more than 2 decimals Office 2010 32bit
Advanced Beginner
Conditional Formatting for values with more than 2 decimals
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default

I tried that and it is saying it contains an error.

=LEN(L1&"")-FIND(".";L1&"")>2

Although I need it to look at the entire L column.
Reply With Quote
  #4  
Old 04-16-2015, 01:14 PM
Jhnsnkth527 Jhnsnkth527 is offline Conditional Formatting for values with more than 2 decimals Windows 7 64bit Conditional Formatting for values with more than 2 decimals Office 2010 64bit
Novice
 
Join Date: Apr 2015
Location: Cincinnati
Posts: 7
Jhnsnkth527 is on a distinguished road
Default

Try the formula based condition if
MOD($L1,.01)>0

MOD is basically a "remainder" function. Example, 7.1 divided 1 has a MOD of .1, I'm guessing if you move the decimal two places (.01), it will give you a MOD for the extra. Example 7.1092 divided by .01 should have a MOD of .92

NOTICE:
Using conditional formatting based on a formula, you can select the cells in column L (i.e. applies to $L$1:$L$2000 or $L:$L), but the conditional formula is
=(MOD($L1,.01)>0)
where $L locks the column but the 1 without the $ says to evaluate each cell based on their own row.
Reply With Quote
  #5  
Old 04-17-2015, 12:16 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Conditional Formatting for values with more than 2 decimals Windows 7 64bit Conditional Formatting for values with more than 2 decimals Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
Originally Posted by lynchbro View Post
I tried that and it is saying it contains an error.

=LEN(L1&"")-FIND(".";L1&"")>2

Although I need it to look at the entire L column.

Forgot to remove the semi colon
Code:
=LEN($L1&"")-FIND(".",$L1&"")>2
and apply to the entire column ( you might get some surprises, though)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 04-17-2015, 12:25 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Conditional Formatting for values with more than 2 decimals Windows 7 64bit Conditional Formatting for values with more than 2 decimals Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
Originally Posted by Jhnsnkth527 View Post
Try the formula based condition if
MOD($L1,.01)>0
This way of doing might surprise you

First, try =len(MOD(7.1092,1)) answer is 6
Now try =len(MOD(7.10,1))
Which answer do you get ?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 04-17-2015, 06:05 AM
lynchbro lynchbro is offline Conditional Formatting for values with more than 2 decimals Windows 7 64bit Conditional Formatting for values with more than 2 decimals Office 2010 32bit
Advanced Beginner
Conditional Formatting for values with more than 2 decimals
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default

thanks Pecoflyer!!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting for values with more than 2 decimals Conditional formatting bbutl027 Excel 15 12-05-2016 08:56 PM
Conditional Formatting sdfrance Excel 3 01-06-2015 07:10 AM
Convert numeric values with decimals to alphabets kjxavier Word 1 07-06-2014 01:44 AM
Conditional Formatting for values with more than 2 decimals Conditional formatting that ignores other formatting rules info_guy2 Excel 1 07-03-2014 10:07 AM
Conditional Formatting namedujour Excel 3 08-25-2011 01:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:06 PM.


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