Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to not calculate (ignore formula) if cell is blank in Excel?

Let's say we have a roll of students with their birthdays in Excel, and we are required to calculate students' age. Normally we can apply the formula of =(TODAY()-B2)/365.25 to figure out the ages. However, we get ridiculous ages because some students' birthdays are not filled by accident. To prevent the errors, we have to not calculate or ignore the formula if cells are blank in Excel.

Do not calculate (ignore formula) if cell is blank in Excel
doc formula ignore blank 1

Easily combine multiple worksheets/workbooks/CSV files into one worksheet/workbook

It may be tedious to combine dozens of sheets from different workbooks into one sheet. But with Kutools for Excel’s Combine (worksheets and workbooks) utility, you can get it done with just several clicks! Full Feature Free Trial 60-day!
ad combine sheets books 1

arrow blue right bubbleDo not calculate or ignore formula if cell is blank in Excel

To ignore a formula or don't calculate if the specific cell is blank in Excel, we need to check the specific cell is blank or not with IF function, if it's not blank, we can go ahead to calculate with original formula.

=IF(Specific Cell<>"",Original Formula,"")

In our case discussed at the beginning, we need to enter =IF(B2<>"",(TODAY()-B2)/365.25,"") into Cell C2, and then drag the Fill Handle to the range you need.

note ribbon Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future!
Read more…     Free trial

Note: The B2 means Cell B2 filled with birthday, if the Cell B2 is blank it will ignore the formula and return blank, if the Cell B2 is filled with birthday, it will return the age.

Alternatively, we can also combine the IF function and original formula as =IF(Specific Cell="","","Original Formula"), and in our case the formula is shown as =IF(B2="","",(TODAY()-B2)/365.25).

Demo: Do not calculate (ignore formula) if cell is blank in Excel


In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!

Quickly enter dash, certain text,  or NA into all blank cells in selection in Excel

Kutools for Excel's Fill Blank Cells utility can help you quickly enter a certain text, such as "Warning" into all blank cells in the selected range only with several clicks in Excel. Full Feature Free Trial 60-day!
ad fill blank cells 5

arrow blue right bubbleRelated Articles

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for you.

  • Designed for 1500+ work scenarios, helps you solve 80% Excel problems.
  • Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  • Being used by 110,000 elites and 300+ well-known companies.

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.