+ Reply to Thread
Results 1 to 6 of 6

Inserting Extra Equation Parameter

  1. #1
    Registered User
    Join Date
    05-26-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    19

    Inserting Extra Equation Parameter

    Hello,

    How do make the following formula to retrieve only the positive or negative values only instead of the total sum ?


    =SUMIF(F11:F85,E96,(G11:G85))


    I believe i should add this in the above formula in the bold section but cant seem to do it right.
    ,"<0" or ,">0"

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Inserting Extra Equation Parameter

    Try

    =SUMIFS(G11:G85,F11:F85,E96,G11:G85,">0")

    Note: with SUMIFS, summed value is first range

  3. #3
    Registered User
    Join Date
    05-26-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Inserting Extra Equation Parameter

    Hi John,


    Thanks for the help ! that formula resolved my issue.
    Pity i cant drag it across but have to manually edit the cells inside for those i want to remain fixed.


    Thanks again !
    Warm Regards.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Inserting Extra Equation Parameter

    Which cells do you want fixed?

    =SUMIFS($G$11:$G$85,$F$11:$F$85,E$96,$G$11:$G$85,">0")

    will fix ranges and keep the criteria (E96) on row 96 but will change to F etc if you drag across columns.

  5. #5
    Registered User
    Join Date
    05-26-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Inserting Extra Equation Parameter

    =SUMIFS(G11:G85,F11:F85,E96,G11:G85,">0")


    Things in bold should be kept in constant.
    In reds are the ones that should change according during the drag (ie G -> H -> I -> J)
    Adding the $ sign keeps parameters fixed ?
    Last edited by MistralAstral; 02-21-2017 at 05:41 AM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Inserting Extra Equation Parameter

    Try

    =SUMIFS(G11:G85,$F$11:$F$85,$E$96,G11:G85,">0")

    OR

    =SUMIFS(G$11:G$85,$F$11:$F$85,$E$96,G$11:G$85,">0")

    so rows 11:85 are fixed (ABSOLUTE reference) but columns are RELATIVE i.e adjust if to drag formula acroos columns


    Yes .. using $ sign will keep row or column or both fixed

    Search for RELATIVE and ABSOLUTE references in the web to understand the differences

+ 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: 0
    Last Post: 05-20-2014, 11:58 AM
  2. inserting an extra number to a cell
    By retos110 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2012, 03:14 AM
  3. Inserting extra row based on condition
    By nobleprince in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2010, 08:40 PM
  4. Inserting an extra column width bar
    By jrjester in forum Excel General
    Replies: 2
    Last Post: 08-06-2009, 06:24 AM
  5. Inserting extra code...
    By 5000XD in forum Excel General
    Replies: 4
    Last Post: 04-07-2009, 11:14 AM
  6. [SOLVED] Using iteration to solve a two-parameter equation
    By Jason in forum Excel General
    Replies: 4
    Last Post: 10-13-2005, 04:05 PM
  7. [SOLVED] Inserting extra info into a cell
    By Neil Greenough in forum Excel General
    Replies: 4
    Last Post: 08-05-2005, 08:05 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