+ Reply to Thread
Results 1 to 9 of 9

format cells not to show minus numbers and replace with zero

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    format cells not to show minus numbers and replace with zero

    I am trying to make a chart to record the generation of my solar panels.I want to enter te meter reading then caculate the daily generation and also average the daily generation,but as you can see I end up with a minus number in the daily generation column.how can I set this up so I can get a daily average.the calc is on sheet 2
    Regards Troysie
    Attached Files Attached Files
    Last edited by troysie; 06-18-2011 at 04:30 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,797

    Re: format cells not to show minus numbers

    Custom format: #,##0;;#,##0


    Regards
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Re: format cells not to show minus numbers

    Thankyou
    Regards Troysie

  4. #4
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Re: format cells not to show minus numbers

    thought that was the answer but I also do not want the minus numbers to count in the average calculation.I need the minus numbers replaced by zero
    regards Trosie

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,797

    Re: format cells not to show minus numbers and replace with zero

    = MAX(D6-D5,0)

    Copy down (and up) as required.

    Regards

  6. #6
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Re: format cells not to show minus numbers and replace with zero

    Tried that but it returns an error reading saying" the formula you typed contains an error "

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,797

    Re: format cells not to show minus numbers and replace with zero

    Did you copy and paste it? That was the formula for C6. You can copy it down and you can copy it up but only as far as cell C3.

    It has an unnecessary space after the equals sign, but then, so did your formula, and it doesn't make a difference.

    Regards

  8. #8
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Re: format cells not to show minus numbers and replace with zero

    Sorry, tried it again and it works perfectly
    regards Troysie

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    38,797

    Re: format cells not to show minus numbers and replace with zero

    You're welcome.

+ 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