+ Reply to Thread
Results 1 to 8 of 8

How to add multiple criteria to a sumproduct formula.

  1. #1
    Registered User
    Join Date
    09-21-2011
    Location
    London
    MS-Off Ver
    365
    Posts
    71

    How to add multiple criteria to a sumproduct formula.

    Hello again all, I have been working on this sheet all day, and have a final challenge for excel. I'm not even sure if it can be done, but what I am trying to do is add in to an already complex formula (for me anyway!), so additional instructions. Basically I want the figure that is being carried accross to be carried across BUT with certain deductions and additions made to that figure.

    Once again, for me trying to explain what I want is almost impossible as I am very green when it comes to these things (although I didn't think so until I first visited this site!!!)

    I have attached a much used and updated example, and I must thank the two superstars who have helped get me this far on this spreadsheet q****c and T******s (not sure it was polite to put your names!)

    Thanks guys for any pearls of excel wisdow thrown my way.

    Kate
    Attached Files Attached Files
    Last edited by necht_angel; 10-06-2011 at 11:14 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to add multiple criteria to a sumproduct formula.

    Hello Kate, how did you calculate that final amount of £15,561 based on a start amount of £14,000. Are you deducting 5% and then deducting 2% of that new amount or the original amount - also the 20%....is that a percentage added after the discounts, I can't get my figures to align with yours......
    Audere est facere

  3. #3
    Registered User
    Join Date
    09-21-2011
    Location
    London
    MS-Off Ver
    365
    Posts
    71

    Re: How to add multiple criteria to a sumproduct formula.

    Quote Originally Posted by daddylonglegs View Post
    Hello Kate, how did you calculate that final amount of £15,561 based on a start amount of £14,000. Are you deducting 5% and then deducting 2% of that new amount or the original amount - also the 20%....is that a percentage added after the discounts, I can't get my figures to align with yours......
    Hiya, daddylonglegs,

    Yes it's less the 5%, then the balance less the 2.5%, then the balance of that +20% VAT although the percentages are subject to change, so the formula needs to take into account the cells the % are in (if that makes any sense lol)

    Kate

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to add multiple criteria to a sumproduct formula.

    You've actually got 2% as the discount not 2.5% so that figure will be slightly different but try this formula in H26 copied across and down

    =SUMPRODUCT(--((H$25-$H$5:$V$5)>$F26),$H$18:$V$18)*(1-$C26)*(1-$D26)*(1+$E26)-SUM($G26:G26)

  5. #5
    Registered User
    Join Date
    09-21-2011
    Location
    London
    MS-Off Ver
    365
    Posts
    71

    Re: How to add multiple criteria to a sumproduct formula.

    Seriously! There is me thinking I'm possibly asking excel to do something impossible, and you give me an answer in a few minutes! I love this site!

    Thanks so much, thats fab, truly appreciate your help.

    Kate

  6. #6
    Registered User
    Join Date
    09-21-2011
    Location
    London
    MS-Off Ver
    365
    Posts
    71

    Re: How to add multiple criteria to a sumproduct formula.

    Sorry one last problem. When I drag down $H$18:$V$18) stays at 18 all the time, is there a way for the 18 to increase by one on the drag down, but the h & v to stay the same.,

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to add multiple criteria to a sumproduct formula.

    The $ signs are used to "fix" the range (make it "absolute" instead of "relative"), e.g. a $ in front of the column number makes the column absolute and one in from of the row numbers makes that absolute.....so in your case you probably need to take out the red $s in $H$18:$V$18...so that would make the formula like this

    =SUMPRODUCT(--((H$25-$H$5:$V$5)>$F26),$H18:$V18)*(1-$C26)*(1-$D26)*(1+$E26)-SUM($G26:G26)

  8. #8
    Registered User
    Join Date
    09-21-2011
    Location
    London
    MS-Off Ver
    365
    Posts
    71

    Re: How to add multiple criteria to a sumproduct formula.

    Thanks again, that has just saved me hours of manually changing it all lol

    Kate

+ 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