+ Reply to Thread
Results 1 to 3 of 3

SUMPRODUCT Divide based on cell reference

  1. #1
    Registered User
    Join Date
    06-14-2021
    Location
    NY,NY
    MS-Off Ver
    365
    Posts
    1

    SUMPRODUCT Divide based on cell reference

    Looking for help to figure out how to divide with sumproduct. Based on extensive searching it appears sumproduct is the correct formula. but it is not behaving nicely with blank cells

    My end goal is to have the formula calculate the carton count based on the qty and packing. the formula can find this from the order #. sample worksheet attached.

    Searched for hours on this forum and greater google and cannot find any answer.

    Your help is appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: SUMPRODUCT Divide based on cell reference

    Try with array formula:
    =SUM(($E$10:$E$14=A2)*IFERROR($G$10:$G$14/$H$10:$H$14,1))
    COnfirmed by Ctrl-shift-enter, not Enter only.
    Quang PT

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: SUMPRODUCT Divide based on cell reference

    cell B2 array formula , drag down

    HTML Code: 

+ 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. Divide a particular cell value based on 2 criteria and paste value in another cell in VBA
    By Ganeshgopinath in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2016, 01:53 PM
  2. Divide with sumproduct gives error
    By CNN in forum Excel General
    Replies: 11
    Last Post: 05-13-2015, 02:33 PM
  3. [SOLVED] divide cell based on partial contents of alternate cell
    By LG1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2013, 05:57 AM
  4. sumproduct problem with divide by 0 error
    By sunilmulay in forum Excel General
    Replies: 4
    Last Post: 07-22-2009, 07:49 AM
  5. sumproduct cell reference not working
    By jaslake in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2009, 09:24 AM
  6. Sumproduct help with Reference Cell
    By gumperz17 in forum Excel General
    Replies: 2
    Last Post: 02-25-2009, 05:26 PM
  7. Sumproduct help with Reference Cell
    By gumperz17 in forum Excel General
    Replies: 2
    Last Post: 02-25-2009, 03:50 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