+ Reply to Thread
Results 1 to 6 of 6

Need to change a Sumproduct Formula to incorporate a condition

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Need to change a Sumproduct Formula to incorporate a condition

    I have have sumproduct formula that works well, however I need a section of it to use a condition.

    "=SUMPRODUCT(--(('Input Sheet'!$A$10:$A$20009=3)+('Input Sheet'!$B$10:$B$20009=1)+('Input Sheet'!$C$10:$C$20009=1)=3),--('Input Sheet'!$L$10:$L$20009>=G21),--('Input Sheet'!$L$10:$L$20009<=J21))"

    The first section ('Input Sheet'!$A$10:$A$20009=3) looks at column of data and checks if any of the data says 3, however I need the formula to look at the column of data and determine if the figure is =>3 and also =<5.

    Hope this is possible.

    Thanks in advance

    JD

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need to change a Sumproduct Formula to incorporate a condition

    Try this...

    =SUMPRODUCT(('Input Sheet'!$L$10:$L$20009>=3)*('Input Sheet'!$L$10:$L$20009<=5),('Input Sheet'!$A$10:$A$20009=3)+('Input Sheet'!$B$10:$B$20009=1)+('Input Sheet'!$C$10:$C$20009=1))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to change a Sumproduct Formula to incorporate a condition

    How do I incorporate the whole thing including the end part of the original sumproduct as in the original post?

    Cheers
    JD

  4. #4
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to change a Sumproduct Formula to incorporate a condition

    The =>3 and =<5 are direct to column A in the input sheet not column L as you have posted.

    Cheers

    JD

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Need to change a Sumproduct Formula to incorporate a condition

    =SUMPRODUCT(--((('Input Sheet'!$A$10:$A$20009>=3)*('Input Sheet'!$A$10:$A$20009<=5))+('Input Sheet'!$B$10:$B$20009=1)+('Input Sheet'!$C$10:$C$20009=1)=3),--('Input Sheet'!$L$10:$L$20009>=G21),--('Input Sheet'!$L$10:$L$20009<=J21))

    With 2010 you may also use:
    =COUNTIFS('Input Sheet'!$A$10:$A$20009,">=3",'Input Sheet'!$A$10:$A$20009,"<=5",'Input Sheet'!$B$10:$B$20009,1,'Input Sheet'!$C$10:$C$20009,1,'Input Sheet'!$L$10:$L$20009,">="&G21,'Input Sheet'!$L$10:$L$20009,"<="&J21)
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  6. #6
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to change a Sumproduct Formula to incorporate a condition

    Many thanks great result.

    Cheers

    JD

+ 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. Sumproduct Formula Based on Specific Condition
    By arlapin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2012, 06:56 PM
  2. Replies: 2
    Last Post: 11-06-2012, 06:40 PM
  3. Add another Condition Column to Sumproduct formula
    By bdb1974 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2009, 10:39 AM
  4. auto change cell formula on condition of worksheet change in other cells
    By futurejock in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2009, 12:11 AM
  5. SUMPRODUCT formula with criterion condition???
    By sunilmulay in forum Excel General
    Replies: 2
    Last Post: 05-08-2009, 06:53 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