Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Sort One Column or Multiple Columns in Excel
  • How To Create Pareto Chart in Excel
  • How to Sort by Color in Excel
  • Conditional Formatting Rules in Excel
  • How to Create One and Two Variable Data Tables in Excel

References

  • Last row number in range
  • Merge tables with VLOOKUP in Excel
  • How to use Excel COLUMN Function
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to get last row in mixed data with blanks in Excel

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation date in specific year
  • Excel Data validation only dates between
  • Excel Data validation must contain specific text
  • Excel Data validation with conditional list

Highlight integers only in Excel

by

This tutorial shows how to Highlight integers only in Excel using the example below;

Formula

=MOD(A1,1)=0

Explanation

To highlight numbers that are integers, you can use a simple formula based on the MOD function. In the example shown, conditional formatting has been applied to the range B4:G11 using thisĀ formula:

=MOD(B4,1)=0

Note: it’s important that CF formulas be entered relative to the “active cell” in the selection, which is assumed to be B4 in this case.

Once you save the rule, you’ll see only values that are integers (whole numbers) highlighted.

How this formula works

The MOD function returns the remainder after division. With a divisor of 1, MOD will return zero for any whole number.

We use this fact to construct a simple formula that tests the result of MOD. When the result is zero (i.e. when the number is an integer) the formula returns TRUE, triggering the conditional formatting.

When the result is not zero (i.e. the number has a decimal component, and dividing by 1 leaves remainder) the formula returns FALSE.

Post navigation

Previous Post:

COSH function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Data validation require unique number

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF with boolean logic in Excel
  • Nested IF function example in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Calculate years between dates in Excel
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Convert Excel time to Unix time in Excel
  • WEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate Quarter of Date in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Running count group by n size in Excel
  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • Categorize text with keywords in Excel

General

  • How to get original number from percent change in Excel
  • Count cells that do not contain errors in Excel
  • Create dynamic workbook reference to another workbook in Excel
  • How to choose page/paper size in Excel before Printing
  • How to create dynamic named range with INDEX in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning