+ Reply to Thread
Results 1 to 10 of 10

Get data from multiple criteria of single column

  1. #1
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    393

    Lightbulb Get data from multiple criteria of single column

    Hi all,
    pls find attachment of file

    I want result specified in file

    I used formula in K4 but showing error

    {=SUM(SUMIFS($C$4:$F$15,$B$4:$B$15,"="&$J4,$A$4:$A$15,"="&$K$2,$C$2:$F$2,"="&$I$19:$I$20))}
    Attached Files Attached Files
    Last edited by sanjuss2; 06-27-2022 at 03:54 AM.
    Regards,
    Sanjay SS
    __________________________________________________________________________________________________________________________
    Good Luck !!!
    If you feel I have helped, please click on the star to the left of the post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember......Mark Thread as Solved.
    Excel Forum Rocks!!!

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2504 and WPS V2024(12.1.0.18543)
    Posts
    4,051

    Re: Get data from multiple criteria of single column

    Cell J4 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell K4 for,ula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell L4 for,ula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    393

    Re: Get data from multiple criteria of single column

    Thanks for reply but it is hard code of column
    for sample purpose I have selected alternate columns
    Actually the product codes mentioned in column : I must be verified with Row 2 above header of table

    If change product code for SEV 1 in column : I then total also get changed

  4. #4
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    393

    Re: Get data from multiple criteria of single column

    I have used following formula but it is not give result for selected columns of product, it is giving total of the branch for the date only for all products.

    {=SUM(($C$4:$F$15)*(--($B$4:$B$15=$J4))*(--($A$4:$A$15=$K$2)),(($C$2:$F$2=$I$19:$I$20)))}

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Get data from multiple criteria of single column

    Maybe:

    =LET(d,$A$4:$A$15,SUMPRODUCT((d=$K$2)*($B$4:$B$15=$J4)*INDEX($C$4:$F$15,SEQUENCE(COUNTA(d)),TRANSPOSE(MATCH($I$19:$I$20,$C$2:$F$2,0)))))

    and

    =LET(d,$A$4:$A$15,SUMPRODUCT((d=$K$2)*($B$4:$B$15=$J4)*INDEX($C$4:$F$15,SEQUENCE(COUNTA(d)),TRANSPOSE(MATCH($I$22:$I$23,$C$2:$F$2,0)))))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2504 and WPS V2024(12.1.0.18543)
    Posts
    4,051

    Re: Get data from multiple criteria of single column

    Quote Originally Posted by sanjuss2 View Post
    I have used following formula but it is not give result for selected columns of product, it is giving total of the branch for the date only for all products.

    {=SUM(($C$4:$F$15)*(--($B$4:$B$15=$J4))*(--($A$4:$A$15=$K$2)),(($C$2:$F$2=$I$19:$I$20)))}
    Cell K4 formula , Drag down and across
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    393

    Lightbulb Re: Get data from multiple criteria of single column

    Hi,
    Great !!!! Thanks a lot


    Both formula works excellent !!!!!


    I required additional condition to extract records on matching multiple rows viz. category

    Please find attachment for your kind perusal...
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Get data from multiple criteria of single column

    It doesn't make any difference to the results... but...

    =LET(d,$A$5:$A$16,SUMPRODUCT((d=$M$2)*($B$5:$B$16=$L4)*INDEX($C$5:$F$16,SEQUENCE(COUNTA(d)),TRANSPOSE(MATCH($K$19:$K$20&$L$19:$L$20,$C$3:$F$3&$C$2:$F$2,0)))))

    see file.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    393

    Re: Get data from multiple criteria of single column

    Thanks a lot

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2504 and WPS V2024(12.1.0.18543)
    Posts
    4,051

    Re: Get data from multiple criteria of single column

    @sanjuss2 You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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] Countifs Multiple criteria for single column
    By JoelleM92 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2021, 05:14 PM
  2. [SOLVED] Capturing Multiple Column’s Data in a Single Column Based on Criteria
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2020, 01:40 PM
  3. [SOLVED] Return single value by searching multiple criteria in multiple column
    By Ramesh h&m in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 07-01-2017, 07:02 AM
  4. [SOLVED] Copy column data from multiple worksheets to single worksheet based on header criteria
    By nateaskins in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-21-2014, 10:42 AM
  5. [SOLVED] Count text in one column Matching single or multiple Criteria from Other Column Excel 2003
    By Jose Macieira in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2013, 06:55 AM
  6. [SOLVED] Pull data if there is any from a single column in multiple worksheets into a single sheet
    By bcas77 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 07-11-2013, 01:22 PM
  7. Average Multiple Criteria Single Column
    By mma3824 in forum Excel General
    Replies: 2
    Last Post: 12-14-2012, 02:36 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