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

Data Analysis

  • How To Create Pareto Chart in Excel
  • Understanding Anova in Excel
  • How to Use Solver Tool in Excel
  • How To Insert and Customize Sparklines in Excel
  • Error Bars in Excel

References

  • Count rows with at least n matching values
  • Count rows that contain specific values in Excel
  • Count unique text values with criteria
  • Approximate match with multiple criteria in Excel
  • How to use Excel VLOOKUP Function

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation with conditional list
  • Excel Data validation whole percentage only
  • Excel Data validation number multiple 100
  • Excel Data validation date in specific year

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

  • Invoice status with nested if in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • OR function Examples in Excel
  • How to use IFS function in Excel
  • IF with wildcards in Excel

Date Time

  • Calculate retirement date in Excel
  • Calculate series of dates by workdays in Excel
  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • Two ways to sum time over 30 minutes in Excel
  • Get days between dates in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Categorize text with keywords in Excel
  • Map inputs to arbitrary values in Excel

General

  • Find, Select, Replace and Go To Special in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
  • 44 Practical Excel IF function Examples
  • How to count total number of cells in a rectangular range in Excel
  • How to fill cell ranges with random number from fixed set of options in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning