+ Reply to Thread
Results 1 to 4 of 4

Avoiding 0 result in formula

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    200

    Avoiding 0 result in formula

    I have 2 worksheets in a workbook, one called “header sheet” and one called “purchase ledger”.
    In cell B9 on the header sheet I am capturing data entered on the “purchase ledger” sheet cell J39. e.g. ='Purchase Ledger'!J39

    No problem as such except that when there is no data in J39 the result returns a zero in B9 – how can I avoid this so that a blank is returned?

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Quote Originally Posted by martins
    I have 2 worksheets in a workbook, one called “header sheet” and one called “purchase ledger”.
    In cell B9 on the header sheet I am capturing data entered on the “purchase ledger” sheet cell J39. e.g. ='Purchase Ledger'!J39

    No problem as such except that when there is no data in J39 the result returns a zero in B9 – how can I avoid this so that a blank is returned?
    Hi Martins,
    this question has been asked and answered many times on the forum.
    Use "search" to find a relevant thread
    Cheers

  3. #3
    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
    Couple of options

    1) Tools > options > View tab > untick zero values. This turns off all zero in sheet
    2). Custom format the cells as
    0;;
    3). Use a if statement
    http://www.j-walk.com/ss/excel/usertips/tip010.htm

    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 !!!

  4. #4
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    200
    option 2 is working for me - thanks

+ 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