+ Reply to Thread
Results 1 to 7 of 7

sum of products under conditions

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    sum of products under conditions

    Hello!

    I'm trying to do that: Sum of all (Bi*Ci*Di) if Ai= "a word" for all i. I would like to enter the sum (the result) in the cell E1. I don't know if i'm clear...
    I think I have to use the loop but I don't really know how!
    Sorry for my English! Thank you very much if somebody can help me!!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: sum of products under conditions

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: sum of products under conditions

    TMS thank you very much it's exactly what I need! I thought I had to use VBA to do it!

    Thank you again!

  4. #4
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: sum of products under conditions

    It's not very important but I Wonder if I can generalize the formula for columns of any lenght? Just if you have an answer but it's already ok.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: sum of products under conditions

    You're welcome. Thanks for the rep.


    You could use Dynamic Named Ranges or, perhaps better, Structured Table references. Just don't use full column references with SUMPRODUCT.

  6. #6
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: sum of products under conditions

    Ok, so I'll try with Structures table references I think I can do it

    Thank you again!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: sum of products under conditions

    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. Replies: 8
    Last Post: 07-01-2016, 02:07 AM
  2. Replies: 6
    Last Post: 03-05-2016, 02:42 PM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. Formula to work out how many products among various products!
    By MissConfussed in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-02-2013, 02:24 PM
  5. Table of Products
    By goldstandard in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-18-2011, 10:27 AM
  6. Categorize Products based on IF/THEN conditions
    By gandl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2008, 03:52 AM
  7. [SOLVED] Products
    By Gene in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2005, 08:07 PM

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