+ Reply to Thread
Results 1 to 4 of 4

sumproduct formula help

  1. #1
    Registered User
    Join Date
    06-22-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    15

    sumproduct formula help

    Hi,

    I am using a formula to count how many different products there are in a list =sumproduct((a1:a10<>"")/countif(a1:a10,a1:a10)) so if there was 8 different products in those 10 rows and 2 products appeared twice the result would show 8.

    I can't figure out how to make it ignore blank cells though. If one of the cells is blank it returns #DIV/0.

    Can anyone help please?

    Thanks

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: sumproduct formula help

    Attach a sample workbook showing the issue.

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: sumproduct formula help

    Try

    =SUMPRODUCT((A2:A10<>"")/COUNTIF(A2:A10,A2:A10&""))

  4. #4
    Registered User
    Join Date
    06-22-2018
    Location
    England
    MS-Off Ver
    2013
    Posts
    15

    Re: sumproduct formula help

    Thanks Azumi that got it perfect.

+ 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: 28
    Last Post: 05-26-2017, 08:17 PM
  2. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  3. SUMPRODUCT Formula help
    By ZeroEcho99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2013, 05:45 AM
  4. [SOLVED] Sumif Formula or Sumproduct Formula? Three Criteria.
    By oHUTCHYo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 10:50 AM
  5. Sumproduct formula
    By Belfast Stu in forum Excel General
    Replies: 14
    Last Post: 01-06-2010, 09:51 AM
  6. SUMPRODUCT formula
    By rjmills18 in forum Excel General
    Replies: 5
    Last Post: 10-03-2008, 07:58 AM
  7. [SOLVED] =SUMPRODUCT formula help
    By Anthony in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-04-2006, 12:35 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