+ Reply to Thread
Results 1 to 12 of 12

sumproduct formula problem

  1. #1
    Forum Contributor
    Join Date
    02-01-2011
    Location
    london, england
    MS-Off Ver
    Excel 2016
    Posts
    179

    sumproduct formula problem

    Hi guys,

    I'm trying to get a formula to tell me this;

    if column E="bedding", count the number of 0's in column M.

    sumproduct seems logical? this is what i have so far (sorry unable to upload example due to work restrictions).

    Please Login or Register  to view this content.
    not sure why it isn't working?
    Last edited by fabrecass; 02-23-2012 at 08:24 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: sumproduct formula problem

    Hi

    Try without "",in zero value.

    =SUMPRODUCT((Sheet1!E2:E29029="Bedding")*(Sheet1!M2:M29029=0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    02-01-2011
    Location
    london, england
    MS-Off Ver
    Excel 2016
    Posts
    179

    Re: sumproduct formula problem

    i still get a #N/A

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: sumproduct formula problem

    Hi,

    Take out the quote marks around the zero

    If you don't want to count blanks as well as zeros then add an extra element
    (Sheet1!M2:M29029<>"")

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor
    Join Date
    02-01-2011
    Location
    london, england
    MS-Off Ver
    Excel 2016
    Posts
    179

    Re: sumproduct formula problem

    still getting #N/A, this is very strange, because i've used this formula a number of times on other spreadsheets and have had no problem?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: sumproduct formula problem

    Hi,

    You didn't mention the #N/A in the original post. You just said it wasn't working. Clearly it is but identifying a problem and returning an error.
    I suggest you filter column M for #N/A values. I'll bet a pound to a penny that one of the column M cells is showing an error.

    Regards

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: sumproduct formula problem

    Attached Files Attached Files

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: sumproduct formula problem

    ..And please let us know this time, if you find your solution, not like the other time.....

    http://www.excelforum.com/excel-gene...-problems.html

  9. #9
    Forum Contributor
    Join Date
    02-01-2011
    Location
    london, england
    MS-Off Ver
    Excel 2016
    Posts
    179

    Re: sumproduct formula problem

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    You didn't mention the #N/A in the original post. You just said it wasn't working. Clearly it is but identifying a problem and returning an error.
    I suggest you filter column M for #N/A values. I'll bet a pound to a penny that one of the column M cells is showing an error.

    Regards
    you're wrong!!!....... it was column E....

    (thank you alot sir)

  10. #10
    Forum Contributor
    Join Date
    02-01-2011
    Location
    london, england
    MS-Off Ver
    Excel 2016
    Posts
    179

    Re: sumproduct formula problem

    Quote Originally Posted by Fotis1991 View Post
    ..And please let us know this time, if you find your solution, not like the other time.....

    http://www.excelforum.com/excel-gene...-problems.html
    My apologies Mr Fotis.

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: sumproduct formula problem

    You are welcome

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: sumproduct formula problem

    Eh!

    I didn't say you hadn't mentioned an error, I said you hadn't mentioned the fact that the error was '#N/A'. i.e nowhere in your original post was the word '#N/A' used. That's important since it can suggest possible reasons.

+ 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