+ Reply to Thread
Results 1 to 20 of 20

SUMPRODUCT arrays different size

  1. #1
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    SUMPRODUCT arrays different size

    Hi Folks:

    I have the following issue:


    excel.jpg

    I need to check if all the grades set in A5:A18 are available in E5:E8.

    For this, I am trying to use the SUMPRODUCT function to count the errors but it does not work because the arrays do not have the same size.

    Basically my column A will receive 1,000+ values, I just need to count the number of values in this array which do not match with any of the values in E5:E8.

    Any ideas? Thanks.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT arrays different size

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: SUMPRODUCT arrays different size

    Or

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    Both work well, thank you.

    However this one:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    would count empty cells as well. So either the array perfectly fits and we are 100% sure there are no empty cells or, personally I used COUNTBLANK to remove the empty cells if any.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT arrays different size

    Glad to help & thanks for the feedback.

  6. #6
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: SUMPRODUCT arrays different size

    In that case of empty cells you could use

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    Quote Originally Posted by Fluff13 View Post
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    With regards to (MATCH(A5:A2000,E5:E8,0)), how can I change this to do an exact match instead and return the relative position of case-sensitive values? In my example "A" and "a" return the same relative position in E5:E8 however I would need "a" to return "N/A" instead.

    Thanks.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT arrays different size

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    I do not understand how the function LAMBDA works exactly (not sure what to put in a and b parameters). I will open a new thread and explain the issue I have. Thanks!

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT arrays different size

    Did it work? If not in what way?

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: SUMPRODUCT arrays different size

    For your original question

    counting the number of values that don't match the grades available, please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: SUMPRODUCT arrays different size

    Or if you want to expand range A so yo don't have to adjust it each time please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    It needs to be case-sensitive, and the MATCH is a combination of two arrays. Please check my post "case-sensitive with MATCH while using arrays"

  14. #14
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    Quote Originally Posted by Fluff13 View Post
    Did it work? If not in what way?
    Not sure how to use the LAMBDA function here, with a and b parameters. Please check my post "case-sensitive with MATCH while using arrays" which describe fully the issue. Thanks.

  15. #15
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT arrays different size

    And that issue is totally different from your question here.
    Added to which you still haven't answered my question.

  16. #16
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    Quote Originally Posted by Fluff13 View Post
    And that issue is totally different from your question here.
    Added to which you still haven't answered my question.
    It looks like it does not work, or maybe I did not use it appropriately. Please see the attached, sheet #1. Thanks !
    Attached Files Attached Files

  17. #17
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT arrays different size

    When I open that file Excel runs a recovery & removes the formula, so I cannot see what you had.
    I have added it for you.
    Attached Files Attached Files

  18. #18
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    Great ! It works fine. Thank you.

    Can you solve the 2nd sheet by any chance? Attached.
    Attached Files Attached Files

  19. #19
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT arrays different size

    Great ! It works fine. Thank you.
    Glad to help & thanks for the feedback.

    You need to stick y=to your new thread for the other question.

  20. #20
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: SUMPRODUCT arrays different size

    Ok thanks. I will mark this one as SOLVED.

+ 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. sumproduct with arrays of different size
    By excellearner16 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2017, 04:32 PM
  2. [SOLVED] Sumproduct with 2 arrays
    By rpinxt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2015, 05:12 AM
  3. Replies: 1
    Last Post: 01-19-2015, 05:47 PM
  4. Sumproduct, 2 arrays - do i need 3?
    By jinkeow in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-02-2013, 10:06 PM
  5. [SOLVED] SUMPRODUCT and different arrays
    By rodich in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-09-2013, 07:02 AM
  6. size limitations of VBA arrays?
    By broro183 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2009, 09:10 PM
  7. [SOLVED] List Arrays of a Certain Size
    By Stratuser in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2005, 01:06 AM

Tags for this Thread

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