+ Reply to Thread
Results 1 to 5 of 5

If, then, else

  1. #1
    Registered User
    Join Date
    04-22-2012
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    3

    If, then, else

    Hello.

    I have been pulling my hair out on this one. I know this is easy, but it seems the help areas are just not geared for exactly what I need.

    I am tracking some purchases against estimated quantities. Basically I want to subtract the sum of the estimated quantities from the sum of the received quantities and yield the (>0) difference, otherwise yield a "0".

    Here is my logic:

    If the sum of cells (row) minus the sum of cells is greater than 0, I want that value, otherwise I want a 0. Sounds simple, but I can't get it to work.

    Here is my most recent effort (and I still get a #VALUE! answer):

    =IF(SUM(P4:S4)-SUM(F4:O4)>0),SUM(P4:S4-F4:O4),0

    Thanks in advance for your help!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: If, then, else

    Try this:
    =MAX(SUM(P4:S4)-SUM(F4:O4),0)
    Quang PT

  3. #3
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: If, then, else

    Hi

    Try this amendment

    Please Login or Register  to view this content.
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  4. #4
    Registered User
    Join Date
    04-22-2012
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: If, then, else

    Thanks Fellas,

    Both options worked great! Joining this forum is the best business decision I've made, today. I'm sure I'll need you again.

  5. #5
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: If, then, else

    Hi
    You are welcome.

    Make sure you have made the thread as solved.

    See my signature for help

    Regards

+ 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