+ Reply to Thread
Results 1 to 7 of 7

How to sumproduct cell arrays?

  1. #1
    Registered User
    Join Date
    10-28-2017
    Location
    Texas
    MS-Off Ver
    Microsoft Office 2007
    Posts
    3

    Question How to sumproduct cell arrays?

    Typing =SUMPRODUCT({0.5,1,0.5},{4,3,2}) into a cell gives a result of 6. I’m trying to get the same result by putting {0.5,1,0.5} in cell A1, {4,3,2} in cell A2, and =SUMPRODUCT(A1,A2) in cell A3, but when I try this I get the #VALUE error in A3. Is there a way to carry out this SUMPRODUCT with the arrays being drawn from their own separate cells?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to sumproduct cell arrays?

    What exactly are you trying to do here? Where are those values coming from?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-28-2017
    Location
    Texas
    MS-Off Ver
    Microsoft Office 2007
    Posts
    3

    Re: How to sumproduct cell arrays?

    One array is quantity of product and the other array is the price at which it was sold. SUMPRODUCT would give me a running total. I want the arrays in their own separate cells so I can visually separate quantity and price, and edit a number here and there when necessary.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to sumproduct cell arrays?

    So you have a bunch of prices all in the same cell?
    If so, it would be better to break them out

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

    Re: How to sumproduct cell arrays?

    Cross-posted here
    Audere est facere

  6. #6
    Registered User
    Join Date
    10-28-2017
    Location
    Texas
    MS-Off Ver
    Microsoft Office 2007
    Posts
    3

    Re: How to sumproduct cell arrays?

    After looking around a bit, it does seem the best thing to do is put each number in it's own cell after all.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to sumproduct cell arrays?

    Yes, it almost always is, that way excel can treat each number on its own

+ 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 using different arrays/tables
    By Powkiwi90 in forum Excel General
    Replies: 5
    Last Post: 08-20-2017, 04:31 PM
  2. [SOLVED] Sumproduct with 2 arrays
    By rpinxt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2015, 05:12 AM
  3. Sumproduct, 2 arrays - do i need 3?
    By jinkeow in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-02-2013, 10:06 PM
  4. [SOLVED] SUMPRODUCT and different arrays
    By rodich in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-09-2013, 07:02 AM
  5. Sumproduct Arrays And / OR
    By Henry c in forum Excel General
    Replies: 6
    Last Post: 04-30-2010, 06:55 AM
  6. Sumproduct - complex sum arrays
    By Tofu in forum Excel General
    Replies: 0
    Last Post: 04-14-2009, 05:38 PM
  7. [SOLVED] Sumproduct arrays
    By L. Howard Kittle in forum Excel General
    Replies: 4
    Last Post: 04-11-2006, 08:20 AM

Tags for this Thread

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