+ Reply to Thread
Results 1 to 6 of 6

Easiest way to return a blank cell that can be used in subsequent calculations

  1. #1
    Registered User
    Join Date
    08-31-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Easiest way to return a blank cell that can be used in subsequent calculations

    Have been using
    <IF(logical_test, [value_if_true], "")>
    to return a blank cell. Problem is that if the cell is blank and used in a subsequent calculation #VALUE! is returned. How do I get a blank cell that behaves as if it were a 0 but doesnt show a 0?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Easiest way to return a blank cell that can be used in subsequent calculations

    what is the subsequent formula? perhaps that can be set to ignore ""...or maybe you will need to have the 1st formula return 0?

    maybe a bit more info will help us to help you?

    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-31-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Easiest way to return a blank cell that can be used in subsequent calculations

    Here is the formula
    Please Login or Register  to view this content.
    Which either puts a number of "" into the cell, say "A1"
    Put=A1+1. into cell "B2"
    You will get either a number or #VALUE! depending what was in "A1"

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Easiest way to return a blank cell that can be used in subsequent calculations

    ok then try =SUM(A1,1)

    Also, I see a bit of a conflict in your formula....
    =IF(ISBLANK(B8),"",IF(OR(P8="",COUNT(C8:D8)=0),IF(COUNT(C8:D8)=2,25,""),P8))

    In your OR, you test for COUNT(C8:D8) = 0, and if it is, then you test for COUNT(C8:D8)=2...if it tests TRUE for 0, it can never test TRUE for =2, so you will never get 25?

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Easiest way to return a blank cell that can be used in subsequent calculations

    Could you have the If function return 0 instead of ""? If you go into the main Excel options dialog, one option is whether or not to display 0 values. If this is correctly selected all 0 values will not be displayed, without further need for additional IF functions or other.
    Another possibility would be to use number formatting. There are 4 sections to a number format, if you leave the 0 section empty, 0 values will not be displayed.

    Instructions here: http://www.extendoffice.com/document...ide-zeros.html
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Registered User
    Join Date
    08-31-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Easiest way to return a blank cell that can be used in subsequent calculations

    Thanks MrShorty.
    Your reply gives a simple fix for my problem. Just have to change a few "" for 0 in my formulas.

+ 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. Default text in 1 cell when blank - to remain once subsequent text deleted
    By thedude1222 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2013, 08:45 AM
  2. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  3. Using a vlookup return cell with mixed elements in a subsequent calculation
    By jonesyhouse in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2012, 07:45 AM
  4. Look up text and return cell address which can be used for calculations
    By redseal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2007, 06:34 PM
  5. [SOLVED] Easiest way to delete blank cells in column (not entire row)
    By sramsey in forum Excel General
    Replies: 4
    Last Post: 02-16-2006, 12:30 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