+ Reply to Thread
Results 1 to 7 of 7

Negative Nos

  1. #1
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Negative Nos

    Dear All,

    I've got a file with sum formulas and datas as well,i need to know
    when ever i'm getting a negative no as result, it should be zero
    or the cell should be empty.

    Thanks in Advance,
    Aks
    Last edited by akbar; 07-08-2009 at 06:23 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,083

    Re: Negative Nos

    How about: =MAX(0;formula)
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Negative Nos

    hello,

    Please find the attached file,C4 is giving a negative value and C6 is giving a positive value
    actually my requirement is when A4 or B4 is missing the end result should be zero rather
    than getting a positive or negative values.

    Thanks in Advance,
    Aks
    Attached Files Attached Files
    Last edited by akbar; 07-07-2009 at 07:07 AM.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Negative Nos

    ...actually my requirement is when A4 or B4 is missing the end result should be zero rather
    than getting a positive or negative values
    in which case:

    C4: =IF(COUNT(A4:B4)<2,0,MAX(0,B4-A4))
    copied down

    or if you're saying negative values now permitted

    C4: =IF(COUNT(A4:B4)<2,0,B4-A4)
    copied down

  5. #5
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Negative Nos

    Thanks Dear,It Works.

    Thanks,
    Aks

+ 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