+ Reply to Thread
Results 1 to 14 of 14

sumproduct formula

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    11

    sumproduct formula

    =SUMPRODUCT(--($J$1:$J$380=$K393),--($O$1:$O$380<>""))

    That is my formula is there a way for this formula to omit the #N/A? I have an "X" in the cells that i need counted but because of the #N/A it return the #N/A instead of the total of the X's

    Sorry if this is confusing

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: sumproduct formula

    Try it like this...

    =COUNTIFS($J$1:$J$380,$K393,$O$1:$O$380,"<>")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumproduct formula

    Not to sure about that Tony.

    If there are #N/A errors, in either range, that will return a potentially false count.

    For example if a TRUE condition in the first range matches a #N/A in the second it will be counted.
    This may or not be what the OP wants.

    This disasterous CSE array formula will ignore all #N/A errors, by treating them as blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Better the errors are fixed at source.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    05-09-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: sumproduct formula

    no i am getting a
    #VALUE!

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumproduct formula

    Did you confirm the CSE formula I gave you with Ctrl+Shift+Enter not just Enter?

    If that fails.

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Last edited by Marcol; 06-21-2013 at 03:07 PM.

  6. #6
    Registered User
    Join Date
    05-09-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: sumproduct formula

    2013 Master File1_TEST_FILE.xls

    Basically All i am trying to do is get a count for example

    B298 Has SERV in it so, i want to see how many "X" are there which will tell me how many people will be having Golf & Dinner. So I dont want it to count anything else but the "X"

    Same would Apply to the D298, but once i see an example of C298 i am sure i will be able to figure out the rest

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: sumproduct formula

    In C298

    =COUNTIFS(C$2:C$290,"X",$A$2:$A$290,$B298)

    Copied dwon
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumproduct formula

    See if this helps
    In C298 this array formula, confirm with Ctrl+Shift+Enter not just Enter. Then Drag across and down as required.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It would be so much easier and better to solve the #N/A errors at source

    e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumproduct formula

    Quote Originally Posted by Ace_XL View Post
    In C298

    =COUNTIFS(C$2:C$290,"X",$A$2:$A$290,$B298)

    Copied dwon
    The file submitted is a 2003 file so you can't use COUNTIFS()

    But, now I see, the OPs profile is 2010, so who knows ...

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: sumproduct formula

    =SUMPRODUCT(--($J$1:$J$380=$K393),--($O$1:$O$380<>""))
    I interpreted the OPs description as meaning the #N/A errors are in column J. Based on that I did not consider that column O might have the errors.

    So the COUNTIFS formula I suggested will ignore the errors in column J.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: sumproduct formula

    Unfortunately, the attached sample file is too big so I can't see what's needed to solve this.

    Sorry, but I won't download a file that's >50kb.

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumproduct formula

    It's an not unfrequent scenario Biff, as I'm sure you will be well aware.

    The OPs' original post bore little or no resemblence to the actual problem he/she is faced with ...

    I will repeat again

    Better the errors are fixed at source.

    xxx or should that be
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    05-09-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: sumproduct formula

    Quote Originally Posted by Marcol View Post
    See if this helps
    In C298 this array formula, confirm with Ctrl+Shift+Enter not just Enter. Then Drag across and down as required.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It would be so much easier and better to solve the #N/A errors at source

    e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Awesome thank you so much

  14. #14
    Registered User
    Join Date
    05-09-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: sumproduct formula

    Why does this formula in C298 work on this spreadsheet but when i try using it but just changing the column id's and numbers it comes back as #value!
    Attached Files Attached Files

+ 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