+ Reply to Thread
Results 1 to 6 of 6

Nested Formula (PRODUCT & OFFSET)

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    6

    Post Nested Formula (PRODUCT & OFFSET)

    I'm having difficult with the following formula in ARRAY formula using Product & OFFSET nested formula:
    Multiply A*B for all items (1-5) and add all together. Ignore blank cells.
    This formula may be simple for some of you, but I can't figure this one out. Please help


    ITEM A B
    1 4 5 20
    2 3 2 6
    3 2 4 8
    4 0
    5 0
    Total 34

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Nested Formula (PRODUCT & OFFSET)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-30-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Nested Formula (PRODUCT & OFFSET)

    Thanks,

    The formula that you provided works if there is no blank cells in the range. However, I have dynamic range that sometime have fields that contain no data and your formula returned zero value. It assumes the blank cells has zero value.

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Nested Formula (PRODUCT & OFFSET)

    sumproduct(a:a*b:b*(a:a<>"")*(b:b<>""))

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

    Re: Nested Formula (PRODUCT & OFFSET)

    SUMPRODUCT doesn't need * to multiply the arrays, just use a comma and blanks will be ignored

    =SUMPRODUCT(A1:A5,B1:B5)

    but in any case if rcm's formula treats blanks as zeroes won't the result still be the same?
    Audere est facere

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,633

    Re: Nested Formula (PRODUCT & OFFSET)

    Quote Originally Posted by alamagan View Post
    Thanks,

    The formula that you provided works if there is no blank cells in the range. However, I have dynamic range that sometime have fields that contain no data and your formula returned zero value. It assumes the blank cells has zero value.
    Could you provide an example please? SUMPRODUCT will work whether there are empty cells or not

  7. #7
    Registered User
    Join Date
    12-30-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Nested Formula (PRODUCT & OFFSET)

    Thanks all.
    SumProduct works with blank cells. my problem was something else. Thanks again

+ 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. [SOLVED] Sumif wilth offset excel or sum product
    By ziadAlsayed in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2013, 10:24 AM
  2. [SOLVED] For..Next, offset, nested loop
    By Gingin8639 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2012, 10:23 AM
  3. Nested IF with OFFSET?
    By JulioFuentes in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 07-11-2011, 08:11 AM
  4. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  5. Problem with combination of Product, Offset, Address, Match
    By espresso1981q in forum Excel General
    Replies: 2
    Last Post: 05-10-2009, 07:30 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