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

Data Analysis

  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • How to add Trendline to a chart in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Excel Frequency Function Example
  • How to Create Gantt Chart in Excel

References

  • Left Lookup in Excel
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • How to get address of last cell in range in Excel
  • Lookup entire row in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation must not contain
  • Excel Data validation whole percentage only
  • Excel Data validation must begin with
  • Excel Data validation must contain specific text

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 wildcards in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • Invoice status with nested if in Excel
  • Return blank if in Excel
  • Check multiple cells are equal in Excel

Date Time

  • Convert date string to date time in Excel
  • Convert date to text in Excel
  • Display Days until expiration date in Excel
  • Convert Excel time to decimal seconds
  • How to calculate Quarter of Date in Excel

Grouping

  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign data to groups in Excel
  • If cell contains one of many things in Excel

General

  • How to count total number of cells in a rectangular range in Excel
  • Creating and Opening an existing file in Excel
  • Check if range contains a value not in another range in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • How to set or clear a print area in Excel Worksheet
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning