+ Reply to Thread
Results 1 to 3 of 3

Treat Blank cell as zero when dividing

  1. #1
    Registered User
    Join Date
    05-23-2014
    Posts
    16

    Treat Blank cell as zero when dividing

    I have a blank cell that i created using an if statement (=IF(A1=0,1,"")), now i want to use the blank cell i created to another formula but i am getting the following error (#VALUE!) how do i solve this problem?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Treat Blank cell as zero when dividing

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    05-21-2014
    Posts
    92

    Re: Treat Blank cell as zero when dividing

    There are a few ways this can be done, but first thing to understand is that having the result "" inside a cell is NOT the same as a blank cell. A blank cell has nothing in it, so it can evaluate to zero in calculations. If the cell instead has "", it is text (not a number) so cannot be used in calculations as-is.

    Here are two ways to go about this:

    1) Change (=IF(A1=0,1,"")) to (=IF(A1=0,1,0)) and just change the formatting of those cells so that zeroes are hidden.
    or
    2) Keep (=IF(A1=0,1,"")) as is, and instead change the formulas that refer to the cell (let's call it B2), from B2 to IF(B2="",0,B2).
    Last edited by Monimonika; 03-03-2017 at 01:17 PM. Reason: Correcting grammar

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to make forumla that treat blank cells as a zero?
    By Bingsmart in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-06-2017, 11:58 AM
  2. Replies: 5
    Last Post: 11-21-2014, 10:00 PM
  3. treat error inputs as blank cells or zero
    By Leon V (AW) in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-14-2013, 05:18 AM
  4. Treat a Formula as a Blank Cell
    By JimS in forum Excel General
    Replies: 2
    Last Post: 01-20-2009, 12:03 AM
  5. Lookup formula - treat no-registered cells as blank
    By gublues in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  6. Lookup formula - treat no-registered cells as blank
    By gublues in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Lookup formula - treat no-registered cells as blank
    By gublues in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1