+ Reply to Thread
Results 1 to 4 of 4

Substracting from total if a cell reference(s) is negative

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-08-2016
    Location
    Buffalo, NY
    MS-Off Ver
    365
    Posts
    115

    Substracting from total if a cell reference(s) is negative

    In F1 (Weeklies Remaining) I am trying to deduct any negative numbers in Row 17 from D1 so ultimately =IF(OR(B17,D17,F17,H17,J17,L17,N17)<0, I want to subtract any of these negative numbers from D1 (Weeklies)

    Any ideas how I can accomplish this? Keeping in mind that if there are multiple negatives I would need the sum of all of those negatives subtracted.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Substracting from total if a cell reference(s) is negative

    Try this:
    =D1+SUMIF(A1:A10,"<0")
    Pete

  3. #3
    Forum Contributor
    Join Date
    09-08-2016
    Location
    Buffalo, NY
    MS-Off Ver
    365
    Posts
    115

    Re: Substracting from total if a cell reference(s) is negative

    Thanks Pete this works great!

  4. #4
    Registered User
    Join Date
    05-29-2012
    Location
    Birmingham, AL
    MS-Off Ver
    Office 2016
    Posts
    8

    Re: Substracting from total if a cell reference(s) is negative

    Formula: copy to clipboard
    =if(b17<0,b17+b4,0)+if(d17<0,d17+d4,0)+if(f17<0,f17+f4,0)+if(h17<0,h17+h4,0)+if(j17<0,j17+j4,0)+if(l17<0,l17+l4,0)+if(n17<0,n17+n4,0)

+ 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. Replies: 4
    Last Post: 11-12-2014, 07:43 AM
  2. [SOLVED] VLOOKUP + reference cell total will calculate
    By ExcelUser2707 in forum Excel General
    Replies: 4
    Last Post: 07-04-2014, 03:13 AM
  3. Replies: 8
    Last Post: 01-10-2014, 03:43 AM
  4. Replies: 3
    Last Post: 08-07-2013, 11:29 AM
  5. numberformat with cell reference for negative numbers
    By batsheva in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2013, 05:59 AM
  6. Macro for substracting the specific cell
    By ronlau123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2011, 11:33 AM
  7. [SOLVED] Can excel total up the same cell reference across several workshee
    By anamcara in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-15-2005, 03:50 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