+ Reply to Thread
Results 1 to 3 of 3

Single Conditional Array x two Multi-Column Array - Approach needed

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    Middle East
    MS-Off Ver
    Excel 2003
    Posts
    66

    Single Conditional Array x two Multi-Column Array - Approach needed

    Hi - i am trying to multiply two arrays (multi-column) that are subject to a single column array. I know that SUMPRODUCT requires all arrays to be the same size. Does anyone know an alternative approach?


    =SUMPRODUCT(--($F$9:$F$12="VDSL"),--($F$9:$F$12="GPON"),--($F$9:$F$12="PTP"),$AG$9:$AO$12,(1-$AS$9:$BA$12))

    If the row does not satisfy a condition listed, then it is simply exclude from the multiplication and not added-up.

    Any views on alternative approaches? Or do I need to write some VBA code? If so, does anyone know of some sample code that is similar and would need minimal adjustment so a non-VBA expert could implement?

    Best / David

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Single Conditional Array x two Multi-Column Array - Approach needed

    Quote Originally Posted by David Brown
    I know that SUMPRODUCT requires all arrays to be the same size
    That's not strictly true.

    It seems you're looking to conduct an OR based test re: F9 and then apply against some matrices

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    the latter approach is useful if you have a decent number of permissible values.

    For more info. on SUMPRODUCT see the link in my sig. to Bob Phillips' white paper.

  3. #3
    Registered User
    Join Date
    09-28-2010
    Location
    Middle East
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Single Conditional Array x two Multi-Column Array - Approach needed

    Many thanks for this. I will see what I can do about getting you knighted by Queen Elizabeth.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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