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

Data Analysis

  • Error Bars in Excel
  • Get column index in Excel Table
  • Conditional Formatting New Rule with Formulas in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel

References

  • Extract all partial matches in Excel
  • How to get address of named range in Excel
  • How to get last row in mixed data with blanks in Excel
  • How to get last column number in range in Excel
  • How to get last row in numeric data in Excel

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation whole percentage only
  • Excel Data validation require unique number
  • Excel Data validation specific characters only
  • Excel Data validation unique values only

Return blank if in Excel

by

This tutorial shows how to calculate Return blank if in Excel using the example below;

Formula

=IF(A1=1,B1,"")

Explanation

To return a blank result using the IF function, you can use an empty string (“”).  In the example shown, the formula in D5 (copied down) is:

=IF(B5=1,C5,"")

How this formula works

This formula is based on the IF function, configured with a simple logical test, a value to return when the test is TRUE, and a value to return when the test is FALSE. In plain English: if Value 1 equals 1, return Value 2. If Value 1 is not 1, return an empty string (“”).

Note if you type “” directly into a cell in Excel, you’ll see the double quote characters. However, when you enter as a formula like this:

=""

You won’t see anything, the cell will look blank.

Also, if you are new to Excel, note numeric values are not entered in quotes. In other words:

=IF(A1=1,B1,"") // right
=IF(A1="1",B1,"") // wrong

Wrapping a number in quotes (“1”) causes Excel to interpret the value as text, which will cause logical tests to fail.

Checking for blank cells

If you need check the result of a formula like this, be aware that the ISBLANK function will return FALSE when checking a formula that returns “” as a final result. There are other options however. If A1 contains “” returned by a formula, then:

=ISBLANK(A1) // returns FALSE
=COUNTBLANK(A1) // returns 1
=COUNTBLANK(A1)>0 // returns TRUE

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

  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRUE Function
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • NOW function: Description, Usage, Syntax, Examples and Explanation
  • Calculate total hours that fall between two times in Excel
  • Calculate series of dates by workdays in Excel
  • How to join date and text together in Excel
  • Get day from date in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel
  • Categorize text with keywords in Excel
  • Group times into unequal buckets in Excel
  • Group arbitrary text values in Excel

General

  • How to calculate decrease by percentage in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
  • How to increase by percentage in Excel
  • How to get amount with percentage in Excel
  • List sheet names with formula in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning