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

Data Analysis

  • Randomize/ Shuffle List in Excel
  • Understanding Pivot Tables in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • Excel Pie Chart
  • How To Perform and Interpret Regression Analysis in Excel

References

  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • Basic INDEX MATCH approximate in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Convert text string to valid reference in Excel using Indirect function
  • How to use Excel MATCH Function

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation specific characters only
  • Excel Data validation exists in list
  • Excel Data validation no punctuation
  • Excel Data validation must begin with

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.

Worked Example:   Highlight values greater than in Excel

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

Worked Example:   Highlight approximate match lookup conditional formatting in Excel

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.

Worked Example:   Conditional formatting based on another cell in Excel

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:

VLOOKUP without #N/A error in Excel

Next Post:

How to Create Gantt Chart in Excel

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

  • How to use Excel FALSE Function
  • How to return blank in place of #DIV/0! error in Excel
  • Return blank if in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get days between dates ignoring years in Excel
  • Count dates in current month in Excel
  • Add months to date in Excel
  • Pad week numbers with zeros in Excel
  • Convert text to date in Excel

Grouping

  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel
  • If cell contains one of many things in Excel
  • Map text to numbers in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to choose page/paper size in Excel before Printing
  • Excel Autofill Cell Ranges, Copy, Paste
  • Using Existing Templates in Excel
  • How to calculate percent sold in Excel
  • Sum by group in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning