+ Reply to Thread
Results 1 to 3 of 3

SumProductIf

  1. #1
    Registered User
    Join Date
    10-14-2019
    Location
    Perú
    MS-Off Ver
    2019
    Posts
    20

    SumProductIf

    first try:

    =SUMIF(ELECTRICAS!$K$4:$K$617;"*"&C2&"*";ELECTRICAS!$I$4:$I$623)

    ... but with this method i can not sum multiple times at same row.

    I tried (suggested in another post):

    =SUMPRODUCT((ISNUMBER(SEARCH(ELECTRICAS!$K$4:$K$617;C2)))*ELECTRICAS!$I$4:$I$617)

    ... to solve this I tried match "*"&C2&"*" with ELECTRICAS!$K$4:$K$617, if yes, then result should = ELECTRICAS!$I$4:$I$623 * NumberTimesIsRepeated("*"&C2&"*", only in the row where we found match ELECTRICAS!$K$4:$K$617)

    but looks like is there any error, any help?
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by JTM2019HYO; 02-05-2022 at 10:30 PM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: SumProductIf

    In G2 copied down

    =IF(C2="","",SUMPRODUCT(ISNUMBER(FIND(C2,ELECTRICAS!$K$4:$K$617))*ELECTRICAS!$I$4:$I$617))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    10-14-2019
    Location
    Perú
    MS-Off Ver
    2019
    Posts
    20

    Re: SumProductIf

    I am not too expert in excel but looks like your formula is equivalent to sumif

    =IF(C2="";"";SUMPRODUCT(ISNUMBER(FIND(C2;ELECTRICAS!$K$4:$K$617))*ELECTRICAS!$I$4:$I$617))

    and

    =SUMIF(ELECTRICAS!$K$4:$K$617;"*"&C2&"*";ELECTRICAS!$I$4:$I$623)

    for example, D2 AND G2 are equals but in ELECTRICAS!K68 "CDL-11" String and ELECTRICAS!I68 with value 1000

    ... the result should be 14930

    ... and if I add "CDL-11;CDL-11;CDL-11" the result should "16930" because 1000*3 times repeated the matched string.
    Attached Images Attached Images

+ 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. Sumproductif
    By garyatwork in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2016, 07:21 AM
  2. How to use sumproductif
    By Arpita_Excel in forum Excel General
    Replies: 2
    Last Post: 07-23-2015, 02:55 AM
  3. How to do a sumproductif()
    By Keroro in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-12-2014, 03:29 AM
  4. SUMPRODUCTIF with date in a table?
    By Almanaki in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-15-2014, 03:33 AM
  5. SUMPRODUCTIF Equivalent
    By dougmcc1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2013, 03:52 PM
  6. Sumproductif
    By thawthorne in forum Excel General
    Replies: 3
    Last Post: 01-29-2009, 10:02 AM
  7. Creating a SUMPRODUCTIF Function
    By thawthorne in forum Excel General
    Replies: 1
    Last Post: 05-23-2008, 12:19 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