+ Reply to Thread
Results 1 to 10 of 10

Expected outcome based on 3 criteria

  1. #1
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Expected outcome based on 3 criteria

    Dear Experts,

    Please find here attached sample workbook where I am looking for help to get expected outcome based on 3 criteria. The first criteria would be from cell A1 Sheet1 the second one from cell F1 Sheet1 and the last would be from the Sheet1 dropdown. So if dropdown select as "All" then only Yes marked activities want to get reflect in sheet1 from sheet2 and if any specific activity name selects from Dropdown then only Yes marked activities want to get reflected.

    Thank you for your valuable support. Please feel free to revert in case of any further clarification if required.

    Regards,

    Neilesh
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,014

    Re: Expected outcome based on 3 criteria

    Which version of Excel are you using?

    For this sort of thing, I would set up the dataset as a structured table and use slicers instead of trying to fudge the filtering with formulae.
    Attached Files Attached Files
    Last edited by AliGW; 09-20-2021 at 03:44 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Expected outcome based on 3 criteria

    Thank you so much for precious support currently i am working on 2016 but only by applying the formulae can be seen as best option in my current situation. Though slicers can also give the same expected output but i would prefer using the formulae instead slicer.

    Thank you once again AligW. Can you please provide the solution on Formulae based.

    Regards,

    Neilesh

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,014

    Re: Expected outcome based on 3 criteria

    No - I don't have time at the moment, sorry. What's the problem with slicers? In what way do you think that formulae are better? Or is this simply an exercise?

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,882

    Re: Expected outcome based on 3 criteria

    Why "Keshav" as outcome if parameter is "Joseph" ?

  6. #6
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Expected outcome based on 3 criteria

    The reason is Keshav pertains to the same activity which Joseph carries and with Keshav the acitivity due marked as Yes.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,882

    Re: Expected outcome based on 3 criteria

    Try

    =IFERROR(INDEX(Sheet2!A$2:A$9,AGGREGATE(15,6,(ROW($A$2:$A$9)-ROW($A$2)+1)/(Sheet2!$B$2:$B$9=$F$1)/(Sheet2!$C$2:$C$9=$A$1)/(Sheet2!$D$2:$D$9="yes"),ROWS($1:1))),"")

    Copy across and down

    Your reply conflicts with requirement to match with A1
    Last edited by JohnTopley; 09-20-2021 at 05:30 AM.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,952

    Re: Expected outcome based on 3 criteria

    worksheet name : Sheet1

    Pls Click the left mouse button to select the ranges area A7:D7 , pls Place the following formula in Formula Bar
    Enter , Drag down

    HTML Code: 
    Last edited by wk9128; 09-20-2021 at 04:58 AM.

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

    Re: Expected outcome based on 3 criteria

    Criteria 1 is A1 of Sheet1. IF DEF is selected only Def with name in A1 is to be selected. How is the expected result selects all names.
    Try this.
    In A7 copied to full range.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 09-20-2021 at 05:01 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    853

    Re: Expected outcome based on 3 criteria

    Thank you Experts for valuable contribution. Thank you so much once again.

+ 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. Replies: 1
    Last Post: 07-29-2020, 10:51 PM
  2. Replies: 1
    Last Post: 11-15-2018, 11:33 AM
  3. [SOLVED] IF Statement which includes an outcome only if specific criteria are met
    By lynnepooh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2013, 03:03 PM
  4. Multiple criteria outcome #VALUE
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2011, 11:42 PM
  5. formula to return value based on MAX outcome
    By SAsplin in forum Excel General
    Replies: 2
    Last Post: 06-21-2011, 07:45 AM
  6. Random outcome based on set criteria on refresh
    By RamboDanbo in forum Excel General
    Replies: 2
    Last Post: 02-16-2011, 02:15 PM
  7. If then else based on outcome of cells.find
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2010, 05:20 AM

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