+ Reply to Thread
Results 1 to 8 of 8

Small Function with Multiple Criteria - OR function

Hybrid View

Peelah Small Function with Multiple... 02-10-2022, 01:56 AM
menem Re: Small Function with... 02-10-2022, 02:50 AM
wk9128 Re: Small Function with... 02-10-2022, 03:09 AM
JohnTopley Re: Small Function with... 02-10-2022, 03:50 AM
Peelah Re: Small Function with... 02-10-2022, 12:23 PM
JohnTopley Re: Small Function with... 02-10-2022, 12:40 PM
Peelah Re: Small Function with... 02-10-2022, 12:21 PM
CARACALLA Re: Small Function with... 02-10-2022, 12:35 PM
  1. #1
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    36

    Small Function with Multiple Criteria - OR function

    Hi,

    I'm trying to combine the small function with the OR function to return all values which match certain criteria.

    Summary Tab: I want to automate this tab by sourcing from the Data Sheet, matching the criteria listed in the grey text in row 1 ("part-time" or "temp" status in the data tab)

    I tried this formula, but it's not working:

    =IFERROR(INDEX(Data!$A$3:$C$265,SMALL(IF(Data!$B$3:$B$265=$A$1)+(Data!$B$3:$B$265=$B$1)),ROW(Data!$B$3:$B$265)-ROW(Data!$2:$2)),ROWS(A$3:A3)),MATCH(A$2,Data!$2:$2,0))),""))

    Any ideas would be greatly appreciated!

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Small Function with Multiple Criteria - OR function

    If you don't mind to use helper.

    Helper : E3
    =AGGREGATE(15,6,(ROW(Data!$B$2:$B$6)-ROW(Data!$B$1))/(1/(OR(Data!$B$2:$B$6=$A$1,Data!$B$2:$B$6=$B$1))),ROWS(E$2:E2))
    copy down

    Answer area.
    A3
    =IFERROR(INDEX(Data!A$2:A$6,$E3),"")
    copy down and across.

    Regards.

  3. #3
    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
    4,011

    Re: Small Function with Multiple Criteria - OR function

    worksheet or tab name : Summary

    Cell A3 formula , Drag down and across

    Formula: copy to clipboard
    =IFERROR(INDEX(Data!$A:$C,AGGREGATE(15,6,ROW($3:$265)/(Data!$B$3:$B$265=$A$1),ROW(1:1)),MATCH(A$2,Data!$A$1:$C$1,)),"")


    OR

    Formula: copy to clipboard
    =IFERROR(INDEX(Data!$A:$C,SMALL(IF(Data!$B$3:$B$265=$A$1,ROW($3:$265)),ROW(1:1)),MATCH(A$2,Data!$A$1:$C$1,)),"")
    Last edited by wk9128; 02-10-2022 at 04:45 AM.

  4. #4
    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,944

    Re: Small Function with Multiple Criteria - OR function

    Try

    Formula: copy to clipboard
    =IFERROR(INDEX(Data!A$2:A$100,AGGREGATE(15,6,ROW($A$1:$A$100)/((Data!$B$2:$B$100=$A$1)+(Data!$B$2:$B$100=$B$1)),ROWS($1:1))),"")
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    36

    Re: Small Function with Multiple Criteria - OR function

    Thanks, this one worked!

  6. #6
    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,944

    Re: Small Function with Multiple Criteria - OR function

    When you reply, please let us know to whom you are responding if you have multiple replies.

    If your query has been answered please mark as SOLVED: See "thread Tools" at top of thread.

  7. #7
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    36

    Re: Small Function with Multiple Criteria - OR function

    Thanks, this only seems to capture the "Part-time" status, and not "Temp" too

  8. #8
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,001

    Re: Small Function with Multiple Criteria - OR function

    Another

    A3 Summary

    =IFERROR(INDEX(Data!A$2:A$100,AGGREGATE(15,6,ROW(Data!A$2:A$100)-ROW(Summary!A$2)+1/ISNUMBER(MATCH(Data!$B$2:$B$100,Summary!$A$1:$B$1,0)),ROWS($A$2:A2))),"")

    Copy across and down

+ 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. Small function based on one criteria.
    By rachste in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2020, 05:05 PM
  2. Small function with multiple criteria
    By StormFusion in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2019, 12:15 PM
  3. Replies: 13
    Last Post: 09-08-2015, 07:01 PM
  4. [SOLVED] Count if, small and row function if only 1 criteria
    By STINSON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-16-2015, 02:09 PM
  5. Small Function with Criteria
    By tmurphy686 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2014, 03:48 PM
  6. Excel 2007 : Small function help for 2 criteria
    By USCguy09 in forum Excel General
    Replies: 7
    Last Post: 04-02-2011, 12:10 AM
  7. [SOLVED] Use criteria for values in range for small function
    By like2hike in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 12:15 PM

Tags for this Thread

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