Excel formula that does not perform a calculation when cell values are 0 or blank

Posted on 2014-04-15
Medium Priority
Last Modified: 2014-05-09
I have an Excel file. Cells in columns A and B usually contain numerical values but sometimes are blank or sometimes have a value of 0.  On each row, in column C, I am dividing B by A.  To avoid getting division errors, I need a formula that I can copy down column C that will skip over a row when a value in cell A or B on a given row is either blank or 0.
Question by:dbfromnewjersey
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Assisted Solution

by:Kent Fichtner
Kent Fichtner earned 480 total points
ID: 40001611

That should work.

Accepted Solution

Kent Fichtner earned 480 total points
ID: 40001616
You could also try this:

LVL 13

Assisted Solution

by:Santosh Gupta
Santosh Gupta earned 240 total points
ID: 40001619

LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 240 total points
ID: 40001628

Assisted Solution

by:Naresh Patel
Naresh Patel earned 240 total points
ID: 40001745
Try this


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question