+ Reply to Thread
Results 1 to 6 of 6

Adjusting a formula to return Blank instead of a zero

  1. #1
    Registered User
    Join Date
    02-16-2007
    Posts
    5

    Adjusting a formula to return Blank instead of a zero

    hai folks,

    I am using Macros to "delete a column and insert a new column by copying the same formulas(sum) and number formats".While doing this, the formula is calculating the sum of blank cells and returning zero(which i do not want to display).if i use the spaces instead of zero to display,it is erasing the formula.can u plz help me out with this.

    When i used tools->options->view: unchecked the zeros values ...i cannot really enter a zero value for summing,as well the previous cell which contain zero is also removed.
    Last edited by Rashkumar; 02-16-2007 at 02:00 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Could you use a if statement to return blank if zero.


    or

    format the cells as

    [<0]General;#,###

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-16-2007
    Posts
    5

    Smile Got It

    Thank U very much

  4. #4
    Registered User
    Join Date
    02-16-2007
    Posts
    5

    Question Problem with summing the cells when all of them are zero

    Hi,
    I tried with formatting cells with [<0]General;#,###.Its working good,It deosn't display any zeros.But when i enter the data in the cells with all the zeros,It is not displaying the sum.It is just displaying a blank even the sum is zero.can u please tell me How to resolve this.

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you post an example

    VBA Noob

  6. #6
    Registered User
    Join Date
    02-16-2007
    Posts
    5

    Question My worksheet

    This sheets contains the macros which removes the oldest year statistics and enters the new year statistics when we click on the "Format Table".The problem is with the "Mad-uc".The column having the formula displays the Zero by default.if we try to make it blank it shows the blank even if the sum is zero.

    http://savefile.com/projects/1082293

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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