+ Reply to Thread
Results 1 to 7 of 7

returning a empty cell

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    kent
    MS-Off Ver
    Excel 2007
    Posts
    10

    returning a empty cell

    Hi a simple formula, I need to add across a row of cells,i use "example" =sum(a1:l1)-sum (n1:p1), ok so far but this formula has to cover a whole page and some rows will remain empty the current formula returns a 00.0 I would like it to leave the target cell empty.?<>?
    Last edited by ned 51; 09-06-2013 at 10:36 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: returning a empty cell

    Use Custom Format and format the target cell like this.

    0;;
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-06-2013
    Location
    kent
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: returning a empty cell

    the problem is I don't know from any given time which rows will remain empty, and was hoping to add to the current formula so that it would return an empty target cell whenever this occurred.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: returning a empty cell

    Then format all your range with numbers in this way. If a 0 exist then the cell will looks like empty.

  5. #5
    Registered User
    Join Date
    09-06-2013
    Location
    kent
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: returning a empty cell

    that's confused me where does that fit into the current formula?

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: returning a empty cell

    In your example you can format like this range A1:P1.

    But as you insist for a formula, here is one.

    =IF(SUM(A1:L1)-SUM(N1:P1)=0,"",SUM(A1:L1)-SUM(N1:P1))

  7. #7
    Registered User
    Join Date
    09-06-2013
    Location
    kent
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: returning a empty cell

    sorry to make you cross I am still new at this and understanding the double brackets and commas etc is taking its time, however I thank you for your help, the formula has been applied and functions just as I wanted it to.

+ 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. [SOLVED] Finding the nth non empty cell in a row and returning value to text box vba
    By jimalya in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-23-2013, 01:41 PM
  2. [SOLVED] Returning a blank cell if the lookup value is empty
    By mgmerv in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 06:59 AM
  3. Replies: 6
    Last Post: 09-16-2010, 05:19 AM
  4. Returning an empty cell instead of a zero
    By Hitch75 in forum Excel General
    Replies: 3
    Last Post: 12-14-2009, 09:34 AM
  5. Empty cell not returning zero
    By Lizabeta in forum Excel General
    Replies: 2
    Last Post: 07-30-2009, 02:15 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