+ Reply to Thread
Results 1 to 3 of 3

Cells multiplying

  1. #1
    Registered User
    Join Date
    10-24-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2003
    Posts
    1

    Cells multiplying

    I have some cells, for example three cells: p1, p2, p3
    Then I need to calculate the following result: (p1*p2 + p1*p3 +p2*p3)
    Number of cells may be various. How can I do this?
    Thanks!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Cells multiplying

    If you put in 4th cell (P4) =P1 you can do this:

    =SUMPRODUCT(P1:P3;P2:P4)
    Never use Merged Cells in Excel

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Cells multiplying

    @zbor, I might be wrong but I don't think that would be scalable for 2 to n terms ?

    Perhaps something like:

    Please Login or Register  to view this content.
    The above is for the three term A1:C1 example.

    To adjust for increasing numbers of unique terms you would alter A1:C1 accordingly (eg to sum all 6 combinations for 4 unique terms you would reference the 4 values A1:D1)
    If needed you could use a Dynamic Named Range to simplify the above and make range references adjust as per values added

    I'm sure the math guys above will be able to shorten the above or produce a much simplified (non-array) version
    Last edited by DonkeyOte; 10-24-2010 at 08:58 AM. Reason: revised note re: DNR

+ 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