+ Reply to Thread
Results 1 to 6 of 6

how to use sumproduct subtotal with criteria in another sheet. on google sheet

  1. #1
    Registered User
    Join Date
    01-29-2022
    Location
    indonesia
    MS-Off Ver
    2016
    Posts
    2

    how to use sumproduct subtotal with criteria in another sheet. on google sheet

    hallo sir , im new in this forum. and sorry for my bad english.

    i have problem how to use sumproduct subtotal with criteria in another sheet. on google sheet
    with formula =SUMPRODUCT(SUBTOTAL(109,OFFSET(MATRIAL!I6,ROW(MATRIAL!I6:I538)-ROW(MATRIAL!I6:I538),0)),--(MATRIAL!J6:J538=F22))

    pm me email i will share copy spreadsheet

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: how to use sumproduct subtotal with criteria in another sheet. on google sheet

    should be

    =SUMPRODUCT(SUBTOTAL(109,OFFSET(MATRIAL!I6,ROW(MATRIAL!I6:I538)-ROW(MATRIAL!I6),0)),--(MATRIAL!J6:J538=F22))

    to explain

    =SUMPRODUCT(SUBTOTAL(109,OFFSET(A1:A10,ROW(A1:A10)-ROW(A1:A10),0)),--(B1:B10="apple"))

    in the above - the SUBTOTAL is looking at A1, 10 times, as the ROW array is just returning ten 0s (1-1, 2-2, 3-3, 4-4 etc) --- then multiplying A1 by however many times the value in B1:B10 = "apple"

    conversely

    =SUMPRODUCT(SUBTOTAL(109,OFFSET(A1:A10,ROW(A1:A10-ROW(A1),0)),--(B1:B10="apple"))

    will return a row array of 0 to 9 (1-1,2-1,3-1,4-1 etc) -- and so use A1:A10 values relative to whether the equivalent value in B is "apple"

    HTH

  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: how to use sumproduct subtotal with criteria in another sheet. on google sheet

    change the formula on "G TOT" sheet cell F13 to be:
    Please Login or Register  to view this content.
    Screen Shot 2022-02-04 at 5.37.34 pm.png
    Last edited by janmorris; 02-04-2022 at 06:38 AM.

  4. #4
    Registered User
    Join Date
    01-29-2022
    Location
    indonesia
    MS-Off Ver
    2016
    Posts
    2

    Re: how to use sumproduct subtotal with criteria in another sheet. on google sheet

    thank you very much sir for helping me.
    I've also finished with sumif with the addition of a helper column in the "matrial sheet". but I will try with the formula you made, because it is easier to understand.
    Attachment 766626

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: how to use sumproduct subtotal with criteria in another sheet. on google sheet

    im sorry, i made update to make more simple, but it appears to not be correct when compared to the result from excel.

    so the solution i gave i think is not correct.

    so that we are not guessing the solution, it will help if you can give only some little sample data (not 1000 rows of data, just 20 rows is enough), and also provide the expected result.
    Last edited by janmorris; 02-04-2022 at 07:11 AM.

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: how to use sumproduct subtotal with criteria in another sheet. on google sheet

    looking deeper at the spreadsheet, there seems to be several issues with the mathematical logic.

    for example...

    F9:
    Please Login or Register  to view this content.
    why is there sum of a single cell?
    why not simply:
    Please Login or Register  to view this content.
    then in F14:
    Please Login or Register  to view this content.
    but you have already included MATRIAL in F12:
    Please Login or Register  to view this content.
    which means you are adding things repeatedly, for what benefit/reason?

+ 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. [SOLVED] Google Sheet : Import From Multiple sheet into 1 sheet with keep format
    By Jhon Mustofa in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 12-14-2021, 07:00 PM
  2. [SOLVED] Google Sheet : Time Stamp Code Work Only in Active Sheet Always Rename Sheet
    By Jhon Mustofa in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 11-23-2021, 10:18 AM
  3. [SOLVED] Google Sheet : ImportRange With Different Amount of Row [Target Sheet & Data Sheet]
    By Jhon Mustofa in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 11-22-2021, 12:14 PM
  4. Google Sheet (Subtract the two cell value using multiple criteria)
    By imgiboy27 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 08-15-2021, 09:40 PM
  5. Google Sheet (Subtract the two cell value using multiple criteria)
    By imgiboy27 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-11-2021, 11:16 PM
  6. [SOLVED] Google Sheets: If 2 criteria are met, display value from next column on other sheet
    By Gavin101 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 13
    Last Post: 08-04-2021, 05:13 PM
  7. Google sheet: Help to attachment file from Google Drive and send email fill in Google Form
    By sbv1986 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-01-2021, 10:47 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