+ Reply to Thread
Results 1 to 19 of 19

Values based on multiple criteria including grouped criteria

  1. #1
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Values based on multiple criteria including grouped criteria

    Hello All

    I would appreciate your assistance

    on weekly basis I need to report value of Purchase Orders for Raw Materials (in excel spreadsheet marked green in Report Sheet) based on certain criteria (marked blue in Main Sheet)

    criteria are:
    * periods - mentioned in cells C5,C5 then C22, C23 then C39, C40 on MAIN SHEET
    * department (Gear Company, Mollarts and DSG) mentioned in line 23 and column D, E, F on MAIN SHEET
    * material type - on CRITERIA-1 SHEET

    - values should be pulled from Report Sheet - column U (marked green)
    - periods in Report Sheet are in column F
    - departments in Report Sheet are in column K
    - material type in Report Sheet are in column L

    Example:
    for Gear company for period 21/02 - 26/02 in cell D15 I would need to get value 46,995.81 GBP
    for Mollarts for the same period in cell E15 = 0.00 GBP
    for DSG for the same period in cell F15 = 0.00 GBP

    Can you please support

    thank you
    Attached Files Attached Files
    Last edited by adsako; 03-24-2020 at 12:30 PM.

  2. #2
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: Values based on multiple criteria including grouped criteria

    Your lookup criteria does not match anything that I see. However I did provide formulas for lookups and changed your criteria.

    Also when providing a workbook please have a small example instead of the entire workbook because it is too large.

    Thanks

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

  3. #3
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi

    I looked at your file and formula and it seems you swapped Gear Company name to Gearbox
    Also your formula does not include my 3rd criteria which are listed in CRITERIA-1 sheet

    I need to report values from column U (report sheet) with criteria as follows:
    * periods - mentioned in cells C5,C5 then C22, C23 then C39, C40 on MAIN SHEET
    * department (Gear Company, Mollarts and DSG) mentioned in line 23 and column D, E, F on MAIN SHEET
    * material type - on CRITERIA-1 SHEET

    thanks

  4. #4
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: Values based on multiple criteria including grouped criteria

    You have C5 twice. I am opting out because of users like you not spending the time to pay attention to details.

    There has to be consistency on values when looking up matches.

    Good luck

  5. #5
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi
    thanks

    Agreed ... there is typo and is supposed to be C5 , C6

  6. #6
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi
    My post was pretty clear ... formula to return values from REPORT sheet based on criteria:
    * periods - mentioned in cells C5,C6 then C22, C23 then C39, C40 on MAIN SHEET
    * department (Gear Company, Mollarts and DSG) mentioned in line 23 and column D, E, F on MAIN SHEET
    * material type - on CRITERIA-1 SHEET

    thanks

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,782

    Re: Values based on multiple criteria including grouped criteria

    Can you explain

    D15=46,995.81 ?

    E15=0 ?

    F15=0 ?

  8. #8
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi

    after sum all values from REPORT sheet (cell U) for period 21-26/02/20 bearing in mind that all criteria are met for Gear Compnay (one of the criteria) I will get 46,995.81 which I would need to report in cell D15
    and subsequently for Mollarts (one of the criteria) i would get result as "zero" and also for DSG (one of the criteria) I would get "zero"

    Thnaks

  9. #9
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,782

    Re: Values based on multiple criteria including grouped criteria

    The result you want to get doesn't have to consider dates.

    Look at the file

    D15=SUMIFS(REPORT!$U$2:$U$1000,REPORT!$K$2:$K$1000,MAIN!D$6,REPORT!$L$2:$L$1000,'CRITERIA-1'!$A$2&"*")

    copy across
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi
    it needs to consider dates as well as this report is downloaded only between 21-26/02 but raw data file is from 2015
    Maybe it was my mistake to share only file where 21-26 dates are included

    however formula I'm looking for needs to also included period criteria

    thanks

  11. #11
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi

    I applied below formula however it returns "zero" value for Gear Company
    (I created table for raw data - REPORT sheet)

    =SUMIFS(Table1[PODetNetTotal], Table1[PODepartment], MAIN!$D$6, Table1[PartGroupCode], 'CRITERIA-1'!$A$1:$A$4, Table1[POOrderDate**], ">="&MAIN!$C$5, Table1[POOrderDate**], "<="&MAIN!$C$6)

    thanks
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,782

    Re: Values based on multiple criteria including grouped criteria

    MAIN

    D15=SUMPRODUCT((REPORT!$F$2:$F$1000>=MAIN!$C$5)*(REPORT!$F$2:$F$1000<=MAIN!$C$6)*(REPORT!$K$2:$K$1000=MAIN!D$6)*(ISNUMBER(MATCH(REPORT!$L$2:$L$1000,'CRITERIA-1'!$A$1:$A$4,0)))*(REPORT!$U$2:$U$1000))

    Copy across

    D32=SUMPRODUCT((REPORT!$F$2:$F$1000>=MAIN!$C$22)*(REPORT!$F$2:$F$1000<=MAIN!$C$23)*(REPORT!$K$2:$K$1000=MAIN!D$6)*(ISNUMBER(MATCH(REPORT!$L$2:$L$1000,'CRITERIA-1'!$A$1:$A$4,0)))*(REPORT!$U$2:$U$1000))

    copy across



    D49=SUMPRODUCT((REPORT!$F$2:$F$1000>=MAIN!$C$39)*(REPORT!$F$2:$F$1000<=MAIN!$C$40)*(REPORT!$K$2:$K$1000=MAIN!D$6)*(ISNUMBER(MATCH(REPORT!$L$2:$L$1000,'CRITERIA-1'!$A$1:$A$4,0)))*(REPORT!$U$2:$U$1000))

    Copy acroos

  13. #13
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi

    thanks
    I was thinking about sumproduct and match as well

    i applied your solution however it returns "zero" value
    trying to find our why

    thanks

    file attached
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,782

    Re: Values based on multiple criteria including grouped criteria

    Attached file
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi

    returns "zero"

    Attachment 668408

  16. #16
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,782

    Re: Values based on multiple criteria including grouped criteria

    Have you seen my file?

    the results for the dates indicated are those

  17. #17
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi
    Yes I have seen your file and when all filters removed it returns "zero" value :/

    file attached

  18. #18
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,782

    Re: Values based on multiple criteria including grouped criteria

    I don't understand what it means

    Explains better

  19. #19
    Forum Contributor
    Join Date
    05-01-2018
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    117

    Re: Values based on multiple criteria including grouped criteria

    Hi

    huge apologies ...

    I have just noticed dates in the file I was looking at are changed (silly me)
    my mistake

    formula is working

    thank you

+ 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] Add if multiple criteria met including some criteria that share a column
    By HelenClark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2017, 11:36 AM
  2. Replies: 6
    Last Post: 04-20-2015, 07:22 AM
  3. [SOLVED] Lookup Function with Multiple Criteria Including Values Between Two Dates
    By webfeet2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2014, 12:01 PM
  4. [SOLVED] How to sum values based on multiple criteria with multple possibilities for each criteria?
    By boredaxel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-05-2013, 02:26 AM
  5. Help with formula to sum multiple criteria grouped by age
    By SteveLaird in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2013, 05:55 PM
  6. Listing Specific Values Based on Criteria (Including Duplicates)
    By Jace in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-22-2008, 02:57 PM
  7. Using array to sum by multiple criteria including one based on prefix
    By monkdelafunk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2008, 02:24 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