Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dr. Sachin Wagh
 
Posts: n/a
Default Conditional Formatting

Using Conditional Formatting, how do I highlight cells that have integers &
those that have decimals?
--
Dr. Sachin Wagh
MBBS, DHA, DPH
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Select the cells that you want to format
Choose FormatConditional Formatting
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)=1
Click the Format button
Select the formatting you want for integers, click OK

Click Add
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)<1
Click the Format button
Select the formatting you want for integers, click OK, click OK

Note: numbers with .0 will be highlighted as integers

Dr. Sachin Wagh wrote:
Using Conditional Formatting, how do I highlight cells that have integers &
those that have decimals?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Or maybe a formula like:

=(b2=int(b2))
or
=(b2<int(b2))

Bad things may happen when Int(b2) = 0.


Debra Dalgleish wrote:

Select the cells that you want to format
Choose FormatConditional Formatting
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)=1
Click the Format button
Select the formatting you want for integers, click OK

Click Add
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)<1
Click the Format button
Select the formatting you want for integers, click OK, click OK

Note: numbers with .0 will be highlighted as integers

Dr. Sachin Wagh wrote:
Using Conditional Formatting, how do I highlight cells that have integers &
those that have decimals?


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


--

Dave Peterson
  #4   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Thanks -- that's much better.

Dave Peterson wrote:
Or maybe a formula like:

=(b2=int(b2))
or
=(b2<int(b2))

Bad things may happen when Int(b2) = 0.


Debra Dalgleish wrote:

Select the cells that you want to format
Choose FormatConditional Formatting
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)=1
Click the Format button
Select the formatting you want for integers, click OK

Click Add
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)<1
Click the Format button
Select the formatting you want for integers, click OK, click OK

Note: numbers with .0 will be highlighted as integers

Dr. Sachin Wagh wrote:

Using Conditional Formatting, how do I highlight cells that have integers &
those that have decimals?


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #5   Report Post  
Dr. Sachin Wagh
 
Posts: n/a
Default

Thanx a ton!
that's made life much easier for me!

"Debra Dalgleish" wrote:

Thanks -- that's much better.

Dave Peterson wrote:
Or maybe a formula like:

=(b2=int(b2))
or
=(b2<int(b2))

Bad things may happen when Int(b2) = 0.


Debra Dalgleish wrote:

Select the cells that you want to format
Choose FormatConditional Formatting
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)=1
Click the Format button
Select the formatting you want for integers, click OK

Click Add
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)<1
Click the Format button
Select the formatting you want for integers, click OK, click OK

Note: numbers with .0 will be highlighted as integers

Dr. Sachin Wagh wrote:

Using Conditional Formatting, how do I highlight cells that have integers &
those that have decimals?

--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting in Excel Help Please..... Willie T Excel Discussion (Misc queries) 4 February 9th 05 02:28 PM
conditional formatting conflict? Abi Excel Worksheet Functions 2 January 11th 05 03:41 PM
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"