IF Statement in Excel

Posted on 2012-09-18
Last Modified: 2012-09-18
I am using the following formula:
=IF(E3=0," ",IF(C2<>C3,1,F2+1))

The problem is when cell F2 is blank I get an error (#VALUE)
How do I get the formula to consider blank as a 0 so it can solve F2+1 as being 1
Any ideas on how I can fix this formula?

(I don't want to replace blank values by 0)
Question by:babychango
    LVL 39

    Accepted Solution

    use N() function

    =IF(E3=0," ",IF(C2<>C3,1,N(F2)+1))


    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
    This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now