ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   whole numbers / not whole numbers (https://www.excelbanter.com/excel-worksheet-functions/90330-whole-numbers-not-whole-numbers.html)

andy_

whole numbers / not whole numbers
 

Is there any way of highlighling non whole numbers from a list, ie. any
numbers with a decimal point,

Thanks


--
andy_
------------------------------------------------------------------------
andy_'s Profile: http://www.excelforum.com/member.php...o&userid=32218
View this thread: http://www.excelforum.com/showthread...hreadid=545084



whole numbers / not whole numbers
 
Hi

The usual way is to use
=A2=INT(A2)
which will return a TRUE if there is not decimal and a FALSE if there is.

Hope this helps.
Andy.

"andy_" wrote in message
...

Is there any way of highlighling non whole numbers from a list, ie. any
numbers with a decimal point,

Thanks


--
andy_
------------------------------------------------------------------------
andy_'s Profile:
http://www.excelforum.com/member.php...o&userid=32218
View this thread: http://www.excelforum.com/showthread...hreadid=545084




Ron Coderre

whole numbers / not whole numbers
 

Andy_

Try this....

Select the range of values
<edit<find
Find what: *.*
Click the [Options] button
Look in: Values
Click the [Find All] button

(That will DISPLAY a list of all matching cells...ONE of them will be
selected)

Press Ctrl+A (that will SELECT all of the matching cells)

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=545084


[email protected]

whole numbers / not whole numbers
 
You could also use the conditional formatting option to highlight the
cells, using the a2=int(a2) suggestion already made.



All times are GMT +1. The time now is 11:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com