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

Data Analysis

  • Conditional Formatting Icon Sets Examples in Excel
  • Working With Tables in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel
  • Excel Line Chart
  • Data Series in Excel

References

  • Two-way lookup with VLOOKUP in Excel
  • Count unique text values with criteria
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Excel Advanced Lookup using Index and Match Functions
  • Last row number in range

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation number multiple 100
  • Excel Data validation exists in list
  • Excel Data validation must contain specific text
  • Excel Data validation specific characters 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 (“”).

Worked Example:   Highlight rows with blank cells in Excel

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.

Worked Example:   Basic outline numbering in Excel

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.

Worked Example:   Excel Data validation with conditional list

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:

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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel
  • How to use Excel OR Function
  • Invoice status with nested if in Excel
  • Not Equal To ‘<>‘ operator in Excel

Date Time

  • Calculate expiration date in Excel
  • Display the current date in Excel
  • Get days between dates ignoring years in Excel
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • Assign points based on late time in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel
  • Categorize text with keywords in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign data to groups in Excel

General

  • Excel Autofill Cell Ranges, Copy, Paste
  • Subtotal by color in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • 3D SUMIF for multiple worksheets in Excel
  • How to make excel worksheets print on one page?
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning