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

Data Analysis

  • Data Series in Excel
  • Use Data Form to input, edit and delete records in Excel
  • How to create Gauge Chart in Excel
  • How to sum a total in multiple Excel tables
  • How To Create Frequency Distribution in Excel

References

  • Excel Advanced Lookup using Index and Match Functions
  • How to use Excel MMULT Function
  • Find closest match in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to get relative row numbers in a range in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation don’t exceed total
  • Data validation must not exist in list
  • Prevent invalid data entering in specific cells
  • Excel Data validation only dates between

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

  • IF, AND, OR and NOT Functions Examples in Excel
  • OR function Examples in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • How to use Excel XOR Function
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • Convert decimal seconds to Excel time
  • Get project midpoint in Excel
  • Get month from date in Excel
  • How to get same date next month or previous month in Excel
  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • How to randomly assign data to groups in Excel
  • If cell contains one of many things in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into unequal buckets in Excel
  • Group arbitrary text values in Excel

General

  • How to calculate percentage discount in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • How to fill cell ranges with random number from fixed set of options in Excel
  • How to calculate percent variance in Excel
  • How to calculate percent of goal in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning