+ Reply to Thread
Results 1 to 5 of 5

hopefully easy one to answer !!

  1. #1
    Forum Contributor
    Join Date
    12-01-2005
    Location
    Somerset, England
    MS-Off Ver
    Office 2010 Pro
    Posts
    138

    hopefully easy one to answer !!

    I have 6 sheets on a spread sheet with sheet 1 being a "master" and referenceing sheets 2,3,4,5 & 6

    At the moment cell "P3" shows the total number of items that need to be ordered and is coded as follows:

    =D3*5-E3-G3-I3-K3-M3-O3

    on some of the items in "P3" it shows a minus value (as we already have some in stock) is there a way to code this to show zero when the sum equals a minus value

    Hopefully this is explained well and would appriciate any help that you can offer

    Many thanks

    Paul

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Paul

    You can use a simple IF formula:

    =IF((D3*5-E3-G3-I3-K3-M3-O3)<0,0,D3*5-E3-G3-I3-K3-M3-O3)

    in cell P3.

    Hope this helps!

    Richard

  3. #3
    Forum Contributor
    Join Date
    12-01-2005
    Location
    Somerset, England
    MS-Off Ver
    Office 2010 Pro
    Posts
    138

    Thank you..

    Many thanks Richard - works perfectly

    Thanks again

    Paul

  4. #4
    Norman Jones
    Guest

    Re: hopefully easy one to answer !!

    Hi Paul,

    One way:

    =MAX(D3*5-E3-G3-I3-K3-M3-O3, 0)

    ---
    Regards,
    Norman


    "Paul Cooke" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I have 6 sheets on a spread sheet with sheet 1 being a "master" and
    > referenceing sheets 2,3,4,5 & 6
    >
    > At the moment cell "P3" shows the total number of items that need to be
    > ordered and is coded as follows:
    >
    > =D3*5-E3-G3-I3-K3-M3-O3
    >
    > on some of the items in "P3" it shows a minus value (as we already have
    > some in stock) is there a way to code this to show zero when the sum
    > equals a minus value
    >
    > Hopefully this is explained well and would appriciate any help that you
    > can offer
    >
    > Many thanks
    >
    > Paul
    >
    >
    > --
    > Paul Cooke
    > ------------------------------------------------------------------------
    > Paul Cooke's Profile:
    > http://www.excelforum.com/member.php...o&userid=29268
    > View this thread: http://www.excelforum.com/showthread...hreadid=545796
    >




  5. #5

    Re: hopefully easy one to answer !!

    =max(0,D3*5-E3-G3-I3-K3-M3-O3 )

    will do it for you


+ 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