+ Reply to Thread
Results 1 to 5 of 5

Need help incorporating SUMIF to only calculate positive numbers in the attached sheet

  1. #1
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    Need help incorporating SUMIF to only calculate positive numbers in the attached sheet

    Hi All,

    I have an attached sheet that calculates totals from now + 1 hour until the end of the day based on the provided data.

    The formula works well except I just realized that if negative numbers are included in the data it is also being captured in the totals. I only want the positive numbers to be calculated with the formula. I am aware of the SUMIF formula however I do not know how to incorporate it inside the formula.

    Formula that needs to be edited is located in CELL F3.

    =SUM(OFFSET(A1,MATCH($J$1,$C:$C,0)-1,1,10000,1))

    Any help will be appreciated.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need help incorporating SUMIF to only calculate positive numbers in the attached sheet

    Perhaps

    =SUMIF(OFFSET(A1,MATCH($J$1,$C:$C,0)-1,1,10000,1),">0")

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need help incorporating SUMIF to only calculate positive numbers in the attached sheet

    Try:-

    =SUMIF(OFFSET(A1,MATCH($J$1,$C:$C,0)-1,1,10000,1),">0")

  4. #4
    Forum Contributor
    Join Date
    09-01-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, Excel 2013, Excel 2016
    Posts
    115

    Re: Need help incorporating SUMIF to only calculate positive numbers in the attached sheet

    Thanks Jonmo1 and mehmetcik

    That worked perfectly fine

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need help incorporating SUMIF to only calculate positive numbers in the attached sheet

    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)

Similar Threads

  1. [SOLVED] SUMIF positive and negative numbers - take double a negative number?
    By Zordrail in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 08:34 AM
  2. Using a table to calculate multiple outputs - example sheet attached
    By troubledexcel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2013, 07:08 PM
  3. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  4. Replies: 10
    Last Post: 03-10-2010, 04:23 PM
  5. Calculate only Positive Numbers
    By B G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2006, 10:15 AM

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